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

{{ .Title }}

{{ .Summary }}

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

Read more...

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