Fix pagination

This commit is contained in:
Russell Cohen 2018-01-08 13:38:39 -08:00
parent 6ff8e53300
commit 8389dc8d6f

View File

@ -5,9 +5,9 @@
</div> </div>
</article> </article>
<div class="mw8 center"> <div class="mw8 center">
{{ $section := where .Data.Pages "Section" .Section }} {{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range $section }} {{ range $paginator.Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }} {{ partial "summary.html" . }}
</div> </div>