I'm trying to show the excerpts of the posts on the front page, but it seems to only work for one post. The excerpt is inserted like this:
{% for post in paginator.posts %}
<div class="unit whole single-post-excerpt">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="description">{{ post.excerpt | strip_html }}</p>
</div>
{% endfor %}
The posts look like this, first one called "2015-08-17-first-post.markdown"
:
---
layout: post
title: "The first post that works"
---
This is the first post that has a working excerpt.
That was the excerpt, and this one won't show up in the list of posts.
These two paragraphs are shown on the post page instead.
And the second one, called "2015-08-18-second-post.markdown"
:
---
layout: post
title: "The second post that does not work"
---
This is the second post that does not work as intended.
This paragraph gets also added to the excerpt.
As does this one.
Why doesn't the second post's excerpt work as intended? Did I miss something in the configuration or..? I also tried adding more posts, and the excerpt works correctly only on the first post. All subsequent posts have all the text shown in the post list, with no paragraph formatting whatsoever - it's all just crammed into one paragraph.