1
Fork 0
blog/index.liquid

39 lines
1,001 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">
<h1><a href="{{ post.permalink }}">{{ post.title }}</a></h1>
<div class="metadata">
{% assign reading_wpm = 200 %}
{% assign word_count = post.content | split: " " | size %}
{% assign reading_time = word_count | divided_by: 200 %}
2022-01-29 23:52:57 +00:00
{% if reading_time < 1%}
{% assign reading_time = 1 %}
{% endif %}
{% assign phrase = " minute read" | prepend: reading_time %}
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }} · {{ phrase }}</time>
{% if post.data and post.tags -%}
{%- for tag in post.tags %}
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
{%- endfor %}
{%- endif -%}
</div>
2022-01-31 10:59:25 +00:00
<p>{{ post.excerpt }}</p>
2017-07-09 12:18:22 +00:00
</article>
<hr>
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
<p>
2017-07-09 12:18:22 +00:00
Looking for more posts? Check out <a href="/posts/">all posts</a>!
</p>