2021-03-30 18:07:36 +05:30
|
|
|
{{- $scratch := newScratch }}
|
2020-10-25 11:17:54 +05:30
|
|
|
|
2020-10-22 20:39:45 +05:30
|
|
|
{{- if not .Date.IsZero -}}
|
2020-10-25 11:17:54 +05:30
|
|
|
{{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }}
|
2021-03-30 18:07:36 +05:30
|
|
|
{{- end }}
|
2020-10-22 20:39:45 +05:30
|
|
|
|
2021-01-24 18:07:17 +05:30
|
|
|
{{- if (.Param "ShowReadingTime") -}}
|
2021-06-11 03:19:30 -03:00
|
|
|
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
|
2021-03-30 18:07:36 +05:30
|
|
|
{{- end }}
|
2020-10-25 11:17:54 +05:30
|
|
|
|
2021-03-30 18:07:36 +05:30
|
|
|
{{- with (partial "author.html" .) }}
|
|
|
|
{{- $scratch.Add "meta" (slice .) }}
|
2020-10-25 11:17:54 +05:30
|
|
|
{{- end }}
|
2021-03-30 18:07:36 +05:30
|
|
|
|
|
|
|
{{- with ($scratch.Get "meta") }}
|
|
|
|
{{- delimit . " · " -}}
|
|
|
|
{{- end -}}
|