{{ $is_list := .is_list }} {{ $ := .content }}
{{/* If `authors` is set and is not empty. */}} {{ if $.Params.authors }} {{ $authorLen := len $.Params.authors }}
{{ range $k, $v := $.Params.authors }} {{- if lt $k (sub $authorLen 1) -}}, {{ end }} {{ end }}
{{ else }} {{ end }} {{ if ne $.Params.Lastmod $.Params.Date }} {{ i18n "last_updated" }} {{ end }} {{ if ne $.Site.Params.reading_time false }} {{ $.ReadingTime }} {{ i18n "minute_read" }} {{ end }} {{ $comments_enabled := and $.Site.DisqusShortname (not (or $.Site.Params.disable_comments $.Params.disable_comments)) }} {{ if and $comments_enabled ($.Site.Params.comment_count | default true) }} {{ end}} {{ if isset $.Params "categories" }} {{ $categoriesLen := len $.Params.categories }} {{ if gt $categoriesLen 0 }} {{ range $k, $v := $.Params.categories }} {{ . }} {{- if lt $k (sub $categoriesLen 1) -}}, {{ end }} {{ end }} {{ end }} {{ end }} {{ if ne $is_list 1 }} {{ partial "share.html" $ }} {{ end }}