summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-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>