2020-10-25 01:47:54 -04:00
|
|
|
{{- $scratch := newScratch}}
|
|
|
|
|
2020-10-22 11:09:45 -04:00
|
|
|
{{- if not .Date.IsZero -}}
|
2020-10-25 01:47:54 -04:00
|
|
|
{{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }}
|
2020-10-22 11:09:45 -04:00
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- if $.Site.Params.ShowReadingTime -}}
|
2020-10-25 01:47:54 -04:00
|
|
|
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }}
|
2020-10-22 11:09:45 -04:00
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- if or .Params.author .Site.Params.author }}
|
2020-10-25 01:47:54 -04:00
|
|
|
{{- $scratch.Add "meta" (slice (.Params.author | default .Site.Params.author)) }}
|
2020-10-22 11:09:45 -04:00
|
|
|
{{- end -}}
|
2020-10-25 01:47:54 -04:00
|
|
|
|
|
|
|
{{- with ($scratch.Get "meta")}}
|
|
|
|
{{- delimit . " · "}}
|
|
|
|
{{- end }}
|