diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-17 13:08:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-17 13:08:03 +0200 |
commit | 18836a71ce7b671fa71dd1318b99fc661755e94d (patch) | |
tree | c6569ef87466e84074aabf4c7dcff16845bbac79 /hugolib/page__paginator.go | |
parent | ab40ce679f1679d76f47652711fc30348a2efafd (diff) | |
download | hugo-18836a71ce7b671fa71dd1318b99fc661755e94d.tar.gz hugo-18836a71ce7b671fa71dd1318b99fc661755e94d.zip |
Adjust the default paginator for sections
To make it in line with 0.56 for sections; only paginate regular pages.
Fixes #6231
Diffstat (limited to 'hugolib/page__paginator.go')
-rw-r--r-- | hugolib/page__paginator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__paginator.go b/hugolib/page__paginator.go index 20476ecfa..640a88c47 100644 --- a/hugolib/page__paginator.go +++ b/hugolib/page__paginator.go @@ -88,7 +88,7 @@ func (p *pagePaginator) Paginator(options ...interface{}) (*page.Pager, error) { // changing in the wild, we make this a special case. pages = p.source.s.RegularPages() } else { - pages = p.source.Pages() + pages = p.source.RegularPages() } paginator, err := page.Paginate(pd, pages, pagerSize) if err != nil { |