Rust post: be more explicit about the scope
[web.git] / ralf / blog / index.html
index 70032ce218c9eeb4941f03b338316b159c0843a8..f85ed560a05fb5ccd2ab389936acb4c31e12747d 100644 (file)
@@ -1,17 +1,8 @@
 ---
-title: "Ralf's Ramblings"
+vars: blog-index.html
 slug: Blog
 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 %}