Rust post: be more explicit about the scope
[web.git] / ralf / blog / index.html
index 380aaaadd3103898fcdcbb721c3188eb67a9c8a5..f85ed560a05fb5ccd2ab389936acb4c31e12747d 100644 (file)
@@ -5,16 +5,4 @@ rss: true
 sort: 10
 ---
 
-{% assign num_posts = 5 %}
-{% for post in site.posts %}
-    {% assign num_posts = num_posts | minus: 1 %}
-    {% if num_posts >= 0 %}
-        <header class="subtitle">
-            {% include post-header.html item=post %}
-            <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
-        </header>
-        {{ post.excerpt }}
-
-        <p><a href="{{ post.url }}">Read more...</a></p>
-    {% endif %}
-{% endfor %}
+{% include post-list.html posts=site.posts %}