Added ReadingTime indication to give the reader an idea of the read time in minutes

This commit is contained in:
Marc Päpper 2019-02-15 09:35:16 +01:00
parent 7d484b27a2
commit 32ea5dc5cf
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
</div>
<span class="post-read-time">- ⏰ {{ .ReadingTime }} min read</span>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}

View File

@ -8,6 +8,7 @@
</span>
{{ end }}
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
<span class="post-read-time">- ⏰ {{ .ReadingTime }} min read</span>
</div>
{{ if .Params.tags }}