1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

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

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 {