make sure we extract something sensible as slug from the readmes
[web.git] / blog / index.html
1 ---
2 layout: default
3 title: "Ralf's Ramblings"
4 slug: Blog
5 rss: true
6 ---
7
8 {% assign num_posts = 5 %}
9 {% for post in site.posts %}
10     {% assign num_posts = num_posts | minus: 1 %}
11     {% if num_posts >= 0 %}
12         <header class="subtitle">
13             <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>
14             <h1>{{ post.subtitle }}</h1>
15         </header>
16         {{ post.content }}
17     {% endif %}
18 {% endfor %}