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

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

Page {{ $paginator.PageNumber}} of {{ $paginator.TotalPages }}

{{ if $paginator.HasPrev }} Newer {{ end }} {{ if $paginator.HasNext }} Older {{ end }}
{{ end }}
{{ end }}