Adjust the default paginator for sections - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 18836a71ce7b671fa71dd1318b99fc661755e94d
(DIR) parent ab40ce679f1679d76f47652711fc30348a2efafd
(HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 17 Aug 2019 13:08:03 +0200
Adjust the default paginator for sections
To make it in line with 0.56 for sections; only paginate regular pages.
Fixes #6231
Diffstat:
M hugolib/page__paginator.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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 {