aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: 5d3350c28e68dd6f1ea5a73cf15148444f31b817 (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ define "main" }}
<div id="content" class="mw7 center">

    <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
    {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}
    {{ partial "pagination.html" . }}
    {{ range $paginator.Pages }}
        {{ .Render "summary" }}
    {{ end }}
</div>
{{ end }}