make the new style also work for blog posts
[web.git] / blog / index.html
index 83d9398518bdf1519b7b8fbbb3fa3e305a8554ef..7ab91943be46ac8478273dcc3bec495af4b0657a 100644 (file)
@@ -1,23 +1,17 @@
 ---
-layout: default
+title: "Ralf's Ramblings"
+slug: Blog
+rss: true
 ---
 
-<div class="home">
-
-  <h1 class="page-heading">Posts</h1>
-
-  <ul class="post-list">
-    {% for post in site.posts %}
-      <li>
-        <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
-
-        <h2>
-          <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
-        </h2>
-      </li>
-    {% endfor %}
-  </ul>
-
-  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
-
-</div>
+{% 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>{{ post.subtitle }}</h1>
+        </header>
+        {{ post.content }}
+    {% endif %}
+{% endfor %}