{{ define "main" }}
<main id="main">
    {{ .Content }}
    {{ $paginator := .Paginate (and (where .Pages ".Params.date" "!=" nil) (where .Pages ".Type" "==" "core")) 1 }}
    {{ range $paginator.Pages.ByWeight }}
    {{ .Content }}
    {{ end }}
    {{ partial "pagination.html" . }}
    {{ if (isset .Params "back") }}
    <div style="text-align: center;"><a href="{{ .Params.back }}" class="pulse">&laquo; back to where we left off</a></div>
    {{ end }}
</main>
{{end}}
