get rid of crazy include-vars-magic and pretitles, at the expense of more layouts
[web.git] / ralf / blog / index.html
index 380aaaadd3103898fcdcbb721c3188eb67a9c8a5..eb4e08234e20fbee2b61ccebfb2727930292f725 100644 (file)
@@ -1,20 +1,12 @@
 ---
-vars: blog-index.html
+layout: default
 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">
-            {% include post-header.html item=post %}
-            <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
-        </header>
-        {{ post.excerpt }}
+<header class="title">
+<h1>{{ site.blog.title }}</h1>
+</header>
 
-        <p><a href="{{ post.url }}">Read more...</a></p>
-    {% endif %}
-{% endfor %}
+{% include post-list.html posts=site.posts %}