1
Fork 0

Only show duration if it's not a root page and it's longer than 2 minutes

This commit is contained in:
Jake Howard 2019-09-29 12:47:44 +01:00
parent 34f592d64f
commit a74ebf3367
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -2,8 +2,10 @@
<span class="pr-2" title='{{ .Date.Format "January 2 2006" }}'><i class="far fa-calendar-alt pr-1"></i>{{ .Date.Format "2006-01-02" }}</span>
{{ end }}
{{ if .ReadingTime }}
{{ if not .Parent.IsHome }}
{{ if gt .ReadingTime 2 }}
<span class="pr-2"><i class="far fa-clock pr-1"></i>{{ .ReadingTime }} minutes</span>
{{ end }}
{{ end }}
{{ if .Params.tags }}