Adjust the default paginator for sections

To make it in line with 0.56 for sections; only paginate regular pages.

Fixes #6231
This commit is contained in:
Bjørn Erik Pedersen 2019-08-17 13:08:03 +02:00
parent ab40ce679f
commit 18836a71ce
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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 {