mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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:
parent
ab40ce679f
commit
18836a71ce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue