Add estimated content time

This commit is contained in:
Tulio Leao 2024-06-29 16:48:42 -03:00
parent 09e674a9d1
commit 2bac8912a3

View file

@ -6,6 +6,13 @@
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }} {{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time> </time>
{{ with .Params.author }}· {{.}}{{ end }} {{ with .Params.author }}· {{.}}{{ end }}
{{ if and (.Site.Params.showContentTime) (not .Params.hideContentTime) }}
{{ if .Params.contentTime }}
{{ with .Params.contentTime }}· {{ printf "%d min" . }}{{end}}
{{ else }}
{{ with .ReadingTime }}· {{ printf "%d min" . }}{{end}}
{{ end }}
{{ end }}
</p> </p>
{{ end }} {{ end }}
<content> <content>