only show a post excerpt in the blog index
[web.git] / ralf / blog / index.html
1 ---
2 vars: blog-index.html
3 slug: Blog
4 rss: true
5 sort: 10
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             {% include post-header.html item=post %}
14             <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
15         </header>
16         {{ post.excerpt }}
17
18         <p><a href="{{ post.url }}">Read more...</a></p>
19     {% endif %}
20 {% endfor %}