If your post looked something like:
# Awesome Blog Post
Here is an example post to show how to use the new `excerpt` tag.
The excerpt tag provides a quick and easy way to tease a post by exposing only the first paragraph such as on a blog index page.
Then in your template, you could create an index file like this:
<ul>
{% for post in site.posts %}
<li>
<a href="{% post.permalink %}">{% post.title %}</a>
<p>{{ post.excerpt }}</p>
</li>
{% endfor %}
</ul>
Which would produce:
- Awesome Blog Post
Here is an example post to show how to use the newexcerpt
tag.
Remember to use
in the actual post to tell Jekyll where it should 'cut' the post for the excerpt content. You can also set
excerpt_separator
globally in your_config.yml
to whatever may tickle you fancy.