Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename DefaultPageSize => PagerSize #12582

Merged
merged 2 commits into from
Jun 9, 2024
Merged

Rename DefaultPageSize => PagerSize #12582

merged 2 commits into from
Jun 9, 2024

Conversation

bep
Copy link
Member

@bep bep commented Jun 8, 2024

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 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.
@jmooring
Copy link
Member

jmooring commented Jun 8, 2024

Small detail, but the template pager method is PageSize, not PagerSize. Maybe we should change the method name to PagerSize as well...it's a better name.

@bep
Copy link
Member Author

bep commented Jun 9, 2024

Good catch, fixed in c0ddcc5

@bep bep merged commit 9c3143c into gohugoio:master Jun 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants