Only show duration if it's not a root page and it's longer than 2 minutes
This commit is contained in:
parent
34f592d64f
commit
a74ebf3367
1 changed files with 4 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue