{{ define "content" }} <article class="homepage-content"> <!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md --> {{.Content}} </article> <!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. --> {{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} {{ if ne $index 0 }} {{ end }} {{ .Render "summary" }} {{ end }} {{ end }} {{ define "content-footer" }} {{ partial "paginator.html" .Paginator }} {{ end }}