hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 18836a71ce7b671fa71dd1318b99fc661755e94d
parent ab40ce679f1679d76f47652711fc30348a2efafd
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:
Mhugolib/page__paginator.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
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 {