diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-06-08 22:28:02 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-06-09 12:28:24 +0200 |
commit | 9f22bc4414616210546899b83e37ef054491bf07 (patch) | |
tree | f80f103e5d563a3cef30676b69d5fadb4028a9b8 /resources | |
parent | 8cf94aea7377a6adbcd41f11908139c0790cc809 (diff) | |
download | hugo-9f22bc4414616210546899b83e37ef054491bf07.tar.gz hugo-9f22bc4414616210546899b83e37ef054491bf07.zip |
Rename DefaultPageSize => PagerSize
This was recently introduced. so no breaking change.
The thing is:
* We do not commonly use the prefix Default* even if it can be overridden in the templates.
* PagerSize makes more sense and is also the term used in the code.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/pagination.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/page/pagination.go b/resources/page/pagination.go index d24879e62..779481792 100644 --- a/resources/page/pagination.go +++ b/resources/page/pagination.go @@ -263,7 +263,7 @@ func splitPageGroups(pageGroups PagesGroup, size int) []paginatedElement { func ResolvePagerSize(conf config.AllProvider, options ...any) (int, error) { if len(options) == 0 { - return conf.Pagination().DefaultPageSize, nil + return conf.Pagination().PagerSize, nil } if len(options) > 1 { |