aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 172e87a..5d3350c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,8 +2,9 @@
<div id="content" class="mw7 center">
<!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
-
- {{ range where .Data.Pages "Section" "post" }}
+ {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}
+ {{ partial "pagination.html" . }}
+ {{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
</div>