mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 01:21:04 +01:00
16213a37e5
- hide zero date (closes #33) - fix separator - refactor
12 lines
412 B
HTML
12 lines
412 B
HTML
{{- if not .Date.IsZero -}}
|
|
<time>{{- .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> ·
|
|
{{- end -}}
|
|
|
|
{{- if $.Site.Params.ShowReadingTime -}}
|
|
{{- i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime) }} ·
|
|
{{- end -}}
|
|
|
|
{{- if or .Params.author .Site.Params.author }}
|
|
{{- printf "%s" (.Params.author | default .Site.Params.author) }}
|
|
{{- end -}}
|