Rust post: be more explicit about the scope
[web.git] / ralf / blog / index.html
index a59db4ca78dba1375103a7e1f706975ead703d0e..f85ed560a05fb5ccd2ab389936acb4c31e12747d 100644 (file)
@@ -5,14 +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.content }}
-    {% endif %}
-{% endfor %}
+{% include post-list.html posts=site.posts %}