summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2019-05-18 16:08:44 +0200
committeruvok cheetah2019-05-18 16:08:44 +0200
commitf6a89e8943a52b27df37353cf57fe926788f0436 (patch)
tree3ddac514899deb280aa4dd57fbef33535d1a1923
parent260e170cad44d0fae92b8a6b12ab439af5f3f041 (diff)
Make "prvate" posts work together with first post detection
-rw-r--r--index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.html b/index.html
index 844ab4f..dd8f7ec 100644
--- a/index.html
+++ b/index.html
@@ -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>