{{ define "content" }}
{{ $paginator := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )) }}
{{ if eq .Paginator.PageNumber 1 }}
{{.Content}}
{{ end }}
{{ if eq .Paginator.PageNumber 1 }}
{{ if .Site.Params.homepageSectionTitle }}
{{ end }}
{{ end }}
{{ range $index, $page := $paginator.Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ define "content-footer" }}
{{ partial "webmentions.html" . }}
{{ partial "paginator.html" .Paginator }}
{{ end }}