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 -}}
|
2022-03-27 18:44:06 +05:30
|
|
|
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.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
|
|
|
|
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 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 -}}
|