diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-06-09 11:16:20 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-06-09 12:28:24 +0200 |
commit | 9c3143c45adfd62db0b6d13bf04b70415cd6ce27 (patch) | |
tree | 544dc4f9cc4591c634599879bc13c515785e1864 /resources/page/pagination.go | |
parent | 9f22bc4414616210546899b83e37ef054491bf07 (diff) | |
download | hugo-9c3143c45adfd62db0b6d13bf04b70415cd6ce27.tar.gz hugo-9c3143c45adfd62db0b6d13bf04b70415cd6ce27.zip |
resources/page: Deprecate PageSize in favor of PagerSize
See #12572
Diffstat (limited to 'resources/page/pagination.go')
-rw-r--r-- | resources/page/pagination.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/page/pagination.go b/resources/page/pagination.go index 779481792..ea49d62f6 100644 --- a/resources/page/pagination.go +++ b/resources/page/pagination.go @@ -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 } |