mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -19,6 +19,7 @@ import (
|
||||
"math"
|
||||
"reflect"
|
||||
|
||||
"github.com/gohugoio/hugo/common/hugo"
|
||||
"github.com/gohugoio/hugo/config"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
@@ -194,7 +195,14 @@ func (p *Paginator) Pagers() pagers {
|
||||
}
|
||||
|
||||
// PageSize returns the size of each paginator page.
|
||||
// Deprecated: Use PagerSize instead.
|
||||
func (p *Paginator) PageSize() int {
|
||||
hugo.Deprecate("PageSize", "Use PagerSize instead.", "v0.128.0")
|
||||
return p.size
|
||||
}
|
||||
|
||||
// PagerSize returns the size of each paginator page.
|
||||
func (p *Paginator) PagerSize() int {
|
||||
return p.size
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user