add wordcount feature
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<article class="post">
|
||||
<h2>{{ page.title }}</h2>
|
||||
<div class="meta">
|
||||
<p>{{ page.date|date("d.m.Y H:i") }}{% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }}{% endif %}</p>
|
||||
<p>{{ page.date|date("d.m.Y H:i") }}{% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }}{% endif %}{% if config.plugins.wordcount.enabled and grav.user.title == theme_config.owner_title %} | {{ getWordCount(content) }} {{ theme_config.wordcount_title }}{% endif %}</p>
|
||||
<p>Tagi: {% for tag in page.taxonomy.tag %}<a href="{{ theme_config.blog.slug }}/tag:{{tag}}">{{ tag }}</a> {% endfor %}</p>
|
||||
</div>
|
||||
{{ page.content | raw }}
|
||||
|
||||
Reference in New Issue
Block a user