How to show a preview of a post? (Using Jekyll Bootstrap theme)

jekyll

This is probably an easy question, but how do I show previews of my posts on the default page? I am using the Jekyll Bootstrap theme Tom.

Best Answer

This also works at least as of 1.0.0, is built in and is simple to use.

<ul>
  {% for post in site.posts %}
    <li>
      <a href="{{ post.url }}">{{ post.title }}</a>
      <p>{{ post.excerpt }}</p>
    </li>
  {% endfor %}
</ul>

See here.

Related Topic