Rust post: be more explicit about the scope
[web.git] / ralf / blog / index.html
index 99724ea6f74a21e650a9cf94e499bd99dae0b0b6..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">
-            <div class="side"><a href="{{ post.url }}">Permalink</a> • {{ post.date | date: "%b %-d, %Y" }}{% if post.author %} • {{ post.author }}{% endif %}{% if post.meta %} • {{ post.meta }}{% endif %}</div>
-            <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
-        </header>
-        {{ post.content }}
-    {% endif %}
-{% endfor %}
+{% include post-list.html posts=site.posts %}