{{ define "main" }} {{ $lastmodstr := (partial "date.html" (dict "date" .Lastmod "language" $.Page.Language "format" "long")) }} {{ $datestr := (partial "date.html" (dict "date" .Date "language" $.Page.Language "format" "long")) }} {{ if (and .Params.thumbnail (not (or .Site.Params.hidePageThumbnail .Params.hidePageThumbnail)) ) }}
{{ if not (or (or .Site.Params.hideMeta .Params.hideMeta) false) }}
{{ $datestr }}
{{ end }}
{{ end }}

{{ .Title }}

{{ if not (or (or .Site.Params.hideMeta .Params.hideMeta) false) }}
{{ $datestr | i18n "postedOnDate" }} {{ if ne $datestr $lastmodstr }}  {{ $lastmodstr | i18n "lastModified" }}
{{ else }}  •  {{ end }} {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "readTime" }}  • {{ .WordCount }} {{ i18n "words" }} {{ if not (or (or .Site.Params.hideOtherLanguages .Params.hideOtherLanguages) false) }} {{ if .IsTranslated -}} {{- $sortedTranslations := sort .Translations "Site.Language.Weight" -}} {{- $links := apply $sortedTranslations "partial" "translation_link.html" "." -}} {{- $cleanLinks := apply $links "chomp" "." -}} {{- $linksOutput := delimit $cleanLinks (i18n "translationsSeparator") -}}  • {{ i18n "translationsLabel" }} {{ $linksOutput }} {{- end }} {{ end }} {{ with .Params.author }}  •  {{ . }} {{ end }}
{{ end }} {{ if (or .Site.Params.toc .Params.toc) }} {{- partial "toc.html" . -}} {{ end }} {{ .Content }}
{{- partial "comments.html" . -}} {{- partial "social.html" . -}} {{ end }}