mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -17,6 +17,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/gohugoio/hugo/common/herrors"
|
||||
"github.com/gohugoio/hugo/resources/kinds"
|
||||
"github.com/gohugoio/hugo/resources/page"
|
||||
)
|
||||
|
||||
@@ -86,12 +87,12 @@ func (p *pagePaginator) Paginator(options ...any) (*page.Pager, error) {
|
||||
var pages page.Pages
|
||||
|
||||
switch p.source.Kind() {
|
||||
case page.KindHome:
|
||||
case kinds.KindHome:
|
||||
// From Hugo 0.57 we made home.Pages() work like any other
|
||||
// section. To avoid the default paginators for the home page
|
||||
// changing in the wild, we make this a special case.
|
||||
pages = p.source.s.RegularPages()
|
||||
case page.KindTerm, page.KindTaxonomy:
|
||||
case kinds.KindTerm, kinds.KindTaxonomy:
|
||||
pages = p.source.Pages()
|
||||
default:
|
||||
pages = p.source.RegularPages()
|
||||
|
Reference in New Issue
Block a user