fix pagination

This commit is contained in:
Dmitry Kolosov 2020-02-15 22:26:47 +03:00
parent 71fce0bf28
commit b9bd15ad09

View File

@ -1,6 +1,6 @@
{{ define "main" }}
{{ range .Paginator.Pages }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range (.Paginate $pages).Pages }}
<article class="post-list">
<header>
<h1>