Add estimated content time
This commit is contained in:
parent
09e674a9d1
commit
2bac8912a3
1 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue