From 18836a71ce7b671fa71dd1318b99fc661755e94d Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sat, 17 Aug 2019 13:08:03 +0200 Subject: Adjust the default paginator for sections To make it in line with 0.56 for sections; only paginate regular pages. Fixes #6231 --- hugolib/page__paginator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/page__paginator.go') 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 { -- cgit v1.2.3