add reading time

This commit is contained in:
2023-01-17 14:42:47 +01:00
parent b8de342d71
commit 285596d43c

View File

@@ -5,7 +5,7 @@
<article class="post"> <article class="post">
<h2>{{ page.title }}</h2> <h2>{{ page.title }}</h2>
<div class="meta"> <div class="meta">
<p>{{ page.date|date("d.m.Y H:i") }}</p> <p>{{ page.date|date("d.m.Y H:i") }} {% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }} {% endif %}</p>
<p>Tagi: {% for tag in page.taxonomy.tag %}<a href="{{ theme_config.blog.slug }}/tag:{{tag}}">{{ tag }}</a>&ensp;{% endfor %}</p> <p>Tagi: {% for tag in page.taxonomy.tag %}<a href="{{ theme_config.blog.slug }}/tag:{{tag}}">{{ tag }}</a>&ensp;{% endfor %}</p>
</div> </div>
{{ page.content | raw }} {{ page.content | raw }}