{{ define "main" }}
{{ if isset .Site.Params "description" }}

{{ .Site.Params.Description | markdownify }}

{{ end }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ range (.Paginate $pages).Pages }} {{ if not (.Param "Archive") }}

{{ .Title }}

{{ .Summary }}

{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}

{{ i18n "read_more" }}

{{ end }}
{{ end }} {{ end }}
{{ $paginator := .Paginator }} {{ if gt .Paginator.TotalPages 1 }}

{{ i18n "page" }} {{ $paginator.PageNumber}} {{ i18n "of" }} {{ $paginator.TotalPages }}

{{ if $paginator.HasPrev }} {{ i18n "newer" }} {{ end }} {{ if $paginator.HasNext }} {{ i18n "older" }} {{ end }}
{{ end }}
{{ end }}