{{ with .Content }}
{{.}}
{{ end }}
{{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range first 3 $pag.Pages }} {{ end }}
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} {{ end }}