{{ define "main" -}} {{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "language" $.Page.Language "format" "long")) -}} {{ $datestr := (partial "utilities/date.html" (dict "date" .Date "language" $.Page.Language "format" "long")) -}}
{{ range .Params.tags -}} {{ . }} {{ end -}}

{{ .Title }}

{{ $datestr | i18n "postedOnDate" -}} {{ if ne $datestr $lastmodstr -}}  {{ $lastmodstr | i18n "lastModified" }} {{ else -}}  •  {{ end -}} {{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }}  • {{ .WordCount }} {{ i18n "words" }}
{{ if .Params.thumbnail -}}
{{- partial "image.html" (dict "url" .Params.thumbnail "ratio" "21x9" "outerClass" "img-wrap" "innerClass" "rounded" "title" .Params.title "caption" .Params.credits) -}}
{{ end -}}
{{ .Content }}
{{ with .NextInSection -}} {{ $next := . -}} {{ with .OutputFormats.Get "html" -}} {{- end -}} {{ end -}}
{{ with .PrevInSection -}} {{ $prev := . -}} {{ with .OutputFormats.Get "html" -}} {{- end -}} {{ end -}}
{{- if and .Site.Params.toc.enabled .Params.includeToc | default true -}} {{ partial "assets/toc.html" . -}} {{ end -}}
{{- if and .Site.Params.comments.enabled .Params.showComments | default true -}}

{{ partial "assets/comments.html" . }}
{{ end -}} {{ end -}}