2021-03-30 08:37:36 -04:00
|
|
|
{{- $scratch := newScratch }}
|
2020-10-25 01:47:54 -04:00
|
|
|
|
2020-10-22 11:09:45 -04:00
|
|
|
{{- if not .Date.IsZero -}}
|
2021-12-26 03:22:10 -05:00
|
|
|
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
|
2021-03-30 08:37:36 -04:00
|
|
|
{{- end }}
|
2020-10-22 11:09:45 -04:00
|
|
|
|
2021-01-24 07:37:17 -05:00
|
|
|
{{- if (.Param "ShowReadingTime") -}}
|
2021-06-11 02:19:30 -04:00
|
|
|
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
|
2021-03-30 08:37:36 -04:00
|
|
|
{{- end }}
|
2020-10-25 01:47:54 -04:00
|
|
|
|
2022-01-21 13:28:25 -05:00
|
|
|
{{- if (.Param "ShowWordCount") -}}
|
|
|
|
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
|
|
|
|
{{- end }}
|
|
|
|
|
2021-03-30 08:37:36 -04:00
|
|
|
{{- with (partial "author.html" .) }}
|
|
|
|
{{- $scratch.Add "meta" (slice .) }}
|
2020-10-25 01:47:54 -04:00
|
|
|
{{- end }}
|
2021-03-30 08:37:36 -04:00
|
|
|
|
|
|
|
{{- with ($scratch.Get "meta") }}
|
|
|
|
{{- delimit . " · " -}}
|
|
|
|
{{- end -}}
|