{{- $showShare := ne (.Param "showshare") false }} {{- $showDate := ne (.Param "showdate") false }} {{- $postDate := .Date.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }} {{- $updateDate := .Lastmod.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }} {{- $showReadTime := ne (.Param "showreadtime") false }} {{- $showPostMeta := or ($showShare) ($showDate) ($showReadTime) (isset .Params "tags") }} {{- $scratch := newScratch }} {{- $scratch.Set "writeSeparator" false }} {{- if $showPostMeta }}
{{- end }} {{- if $showDate }} {{ partial "sprite" (dict "icon" "calendar") }} {{ $postDate -}}{{- if ne $postDate $updateDate }} ({{ T "updated" }}: {{ $updateDate -}}){{- end }} {{- $scratch.Set "writeSeparator" true }} {{- end }} {{- if $showReadTime }} {{ if ($scratch.Get "writeSeparator") }} · {{ end }}{{ T "reading_time" . }} {{- $scratch.Set "writeSeparator" true }} {{- end }} {{- with .Params.tags -}} {{- if ($scratch.Get "writeSeparator") }} · {{ end }} {{- range . }} {{- $tag := urlize . -}} {{- end }} {{- $scratch.Set "writeSeparator" true }} {{- end }} {{- if $showShare }} {{ if ($scratch.Get "writeSeparator") }} ·{{ end }}{{ partial "share" . }} {{- $scratch.Set "writeSeparator" true }} {{- end }} {{- if $showPostMeta }}
{{- end }}