mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user