Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / _default
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--layouts/_default/list.html4
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cf5b2b2..d70204d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,8 +1,10 @@
{{ partial "header.html" . }}
+{{ $paginator := .Paginate (where .Data.Pages "Section" "post") (or .Site.Params.paginate 3) }}
<main role="main" class="article-list">
<h1 class="list-title">{{ .Title }}</h1>
- {{ range .Data.Pages }}
+ {{ range $paginator.Pages }}
{{ partial "article-list-item.html" . }}
{{ end }}
</main>
+{{ partial "paginator.html" $paginator }}
{{ partial "footer.html" . }}