allow setting ShowReadingTime per-page
as well as site-wide
This commit is contained in:
parent
bc4d4153dc
commit
f7dbf75d5b
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $.Site.Params.ShowReadingTime -}}
|
||||
{{- if (.Param "ShowReadingTime") -}}
|
||||
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue