From b9bd15ad093f3a6d3443a9d09399e7e46197d56e Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sat, 15 Feb 2020 22:26:47 +0300 Subject: [PATCH] fix pagination --- layouts/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 8288b1a..9048e8b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }} - - {{ range .Paginator.Pages }} + {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range (.Paginate $pages).Pages }}