{{ define "main" }}
    <div class="homepage-content">
        {{ .Content }}
    </div>

    <div class="articles h-feed">
        {{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }}
        {{ range .Site.RegularPages }}
            {{ partial "post-summary.html" .  }}
        {{ end }}
        {{ partial "pagination.html" . }}
    </div>

{{ end }}