{{- $scratch := newScratch }} {{- if not .Date.IsZero -}} {{- $scratch.Add "meta" (slice (printf "%s" .Date (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} {{- end }} {{- if and (not .Lastmod.IsZero) (ne .Lastmod.Unix .Date.Unix) -}} {{- $updatedLabel := cond (eq .Lang "zh-cn") "更新于" "Updated" -}} {{- $scratch.Add "meta" (slice (printf "%s %s" $updatedLabel (.Lastmod | time.Format (default ":date_long" site.Params.DateFormat)))) }} {{- end }} {{- if (.Param "ShowReadingTime") -}} {{- $scratch.Add "meta" (slice (printf "%s" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }} {{- end }} {{- if (.Param "ShowWordCount") -}} {{- $scratch.Add "meta" (slice (printf "%s" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }} {{- end }} {{- with (.Param "author") }} {{- $scratch.Add "meta" (slice (printf "%s" .)) }} {{- end }} {{- with ($scratch.Get "meta") -}} {{- delimit . " · " | safeHTML -}} {{- end -}}