{{ define "main" }}
{{ with .Content }}
{{- . -}}
{{ end }}
{{ if .Parent.IsHome }} {{ range .Sections }}
{{ .Render "summary-with-image" }}
{{ end }} {{ else }} {{ range (.Paginate .RegularPagesRecursive).Pages }}
{{ .Render "summary-with-image" }}
{{ end }} {{- template "_internal/pagination.html" . -}} {{ end }}
{{ end }}