mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +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 -}}
|