{{ define "main" }}
{{ $paginator := .Paginate ((where $.Site.RegularPages "Section" .Section).ByParam "top") }} {{ range $i, $page := $paginator.Pages }} {{ partial "row.html" (dict "page" $page "index" $i) }} {{ end }}
{{ end }} {{ define "pagination" }} {{ $paginator := .Paginate ((where $.Site.RegularPages "Section" .Section).ByParam "top") }} {{ partial "pagination.html" (dict "paginator" $paginator) }} {{ end }}