1
Fork 0
blog/index.liquid

20 lines
540 B
Plaintext
Raw Normal View History

---
2017-07-09 12:18:22 +00:00
title: fnordig.de
2018-01-01 19:04:05 +00:00
layout: default.liquid
data:
route: blog
2017-07-09 12:18:22 +00:00
---
2018-02-11 11:22:39 +00:00
{%- assign idx = 0 -%}
{%- for post in collections.posts.pages -%}
{%- if idx < 5 -%}
2017-07-09 12:18:22 +00:00
<article class="blog-list">
2018-01-01 19:04:05 +00:00
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }}</time><br />
2017-07-09 12:18:22 +00:00
<p>{{ post.content | strip_html | truncatewords: 25, '...' }}</p>
</article>
2018-02-11 11:22:39 +00:00
{%- endif -%}
2017-07-09 12:18:22 +00:00
{% assign idx = idx | plus: 1 %}
2018-02-11 11:22:39 +00:00
{%- endfor -%}
2017-07-09 12:18:22 +00:00
Looking for more posts? Check out <a href="/posts/">all posts</a>!