{{- define "main" }} {{- $scratch := newScratch }} {{- if isset .Params "image" }} {{- $scratch.Set "image" .Params.image }} {{- else }} {{ $scratch.Set "image" .Site.Params.fallBackOgImage }} {{- end }} {{- $image := $scratch.Get "image" }} {{- $bg := (path.Join "images" $image | absLangURL) }} {{- $show_toc := (and .Params.toc (gt (len .TableOfContents) 80)) }}
{{- partial "i18nlist" . }}

{{ .Title }}

{{- partial "post-meta" . }} {{ partial "share" . }} {{ with .Params.featureImage }} {{ end }}
{{- .Content }}
{{ if eq .Type "posts" }}
{{ partial "subscriber-form" . }}
{{ if and ( ne .Site.Params.comment false ) ( ne .Params.comment false ) }} {{ partial "comments" . }} {{ end }} {{ partial "related-posts" . }} {{ end }}
{{ if $show_toc }} {{ end }}
{{- end }}