aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: eb6d5c6aa96f508159e8bc5852c45aa161ee7594 (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ define "main" }}
<div id="content" class="bg-near-white pb2 pt4">

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