diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 283c619..544d78c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,8 +2,9 @@ <h1>{{ .Title }}</h1> {{ .Content }} -{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ range $pages.ByPublishDate.Reverse }} +{{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} + +{{ range $paginator.Pages.ByPublishDate.Reverse }} <h2 class="post-list {{ if ne .Params.show_summary false }}summary{{ end }}"> <a href="{{ .RelPermalink }}"> {{ .Title }} @@ -13,4 +14,5 @@ {{ .Summary }} {{ end }} {{ end }} +{{ template "partials/pagination.html" . }} {{ end }} |