{{ define "main" }}

{{ .Title }}

{{ .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 }}

{{ .Title }}

{{ if .Site.Params.fullPostContent }}{{ .Content }}{{ else }}{{ .Summary }}{{ end }}

{{- if and (.Truncated) (.Site.Params.readMore) -}} {{ i18n "read_more" }} {{- end -}}
{{ if isset .Site.Params "indexdateformat" }} {{ .Date.Format .Site.Params.indexDateFormat }} {{ else }} {{.Date.Format "Mon, Jan 2, 2006"}} {{ end }} {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
{{ end }} {{ end }}