{{ define "main" }} {{- if eq .IsPage true }} {{ $paginator := .Paginate .Data.Pages }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} {{ partial "pagination" . }} {{- end }} {{ end }}