diff options
author | uvok cheetah | 2019-05-18 16:08:44 +0200 |
---|---|---|
committer | uvok cheetah | 2019-05-18 16:08:44 +0200 |
commit | f6a89e8943a52b27df37353cf57fe926788f0436 (patch) | |
tree | 3ddac514899deb280aa4dd57fbef33535d1a1923 /index.html | |
parent | 260e170cad44d0fae92b8a6b12ab439af5f3f041 (diff) |
Make "prvate" posts work together with first post detection
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> |