{{ define "main" }}
{{ .Content }}
{{ if .Params.mainSectionsTitle }}

{{ .Params.mainSectionsTitle }}

{{ end }} {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} {{ range $paginator.Pages }}
{{ if .Params.thumbnail }}
Thumbnail image
{{ end }}

{{ upper .Title }}

{{ if .Site.Params.fullPostContent }}

{{ .Content | markdownify }}

{{ else }}

{{ .Summary | markdownify }}

{{ end }} {{- if and (.Truncated) (.Site.Params.readMore) -}} {{ i18n "read_more" }} {{- end -}}
{{ with .Page.Params.Categories }} {{ partial "taxonomy/categories.html" . }} {{ end }} {{ with .Page.Params.Tags }} {{ partial "taxonomy/tags.html" . }} {{ end }}
{{ end }} {{ end }}