{{ define "main" }}
<main class="main list">
{{- with .Title }}
<header class="main-header">
<h1 class="main-title">{{ . }}</h1>
</header>
{{- end }}
{{- with .Content }}
<div class="main-content">
{{ . }}
</div>
{{- $photoSections := (.Site.Param "photoSections" | default (slice "posts")) }}
{{- $paginator := .Paginate ( where ( where .Site.RegularPages "Type" "in" $photoSections ) "Params.images" "!=" nil ) 5 }}
{{- range $paginator.Pages }}
{{- .Render "photosummary" }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
</main>
{{ partial "pagination" . }}
{{ end }}