diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5,6 +5,8 @@ layout: default <div class="home"> <ul class="post-list"> + {% assign first_displayed = false %} + {% for post in site.posts %} {% if post.unlisted == true %} {% continue %} @@ -15,8 +17,9 @@ layout: default <h2> <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> </h2> - {% if post == site.posts[0] %} - <div>{{ post.content }}</div> + {% if first_displayed != true %} + <div>{{ post.content }}</div> + {% assign first_displayed = true %} {% endif %} </li> |