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

Option to customize a different pagination limit specifically for the archive pages #6383

Closed
4 tasks done
shenweiyan opened this issue Nov 22, 2023 · 4 comments
Closed
4 tasks done
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open

Comments

@shenweiyan
Copy link

Context

No response

Description

I've found that the pagination_per_page parameter in the blog plugin affects both the blog's main page and the archive pages.

Now, I wish there was an option to customize a different pagination limit specifically for the archive pages, for example, setting pagination_per_page=20 for the archives page while keeping pagination_per_page=5 for the main blog page.

Related links

Use Cases

Separately setting different pagination_per_page for the blog's main page and the archive pages can provide more flexibility for the customization of the blog plugin.

Visuals

No response

Before submitting

@shenweiyan shenweiyan changed the title Set pagination_per_page for archive pages Option to customize a different pagination limit specifically for the archive pages Nov 22, 2023
@alexvoss alexvoss added the change request Issue requests a new feature or improvement label Nov 22, 2023
@squidfunk
Copy link
Owner

squidfunk commented Nov 23, 2023

Thanks for suggesting! Added in 8ecee7b (Insiders). This commit introduces several new configuration flags, and fixes some issues when pagination is disabled. New advanced settings are:

All of those are optional settings (similar to archive_toc and categories_toc), and will inherit their values from pagination and pagination_per_page unless they're explicitly specified.

Note that these options will at first be only available to sponsors. We're happy to offer more advanced configuration settings for the blog plugin that don't cater to everyday use cases to our sponsors as part of Insiders.

I'll backport the pagination fixes in a minute to the community edition. Adding this functionality was a great opportunity to refactor inheritance of settings a little, and to allow us to add more fine-grained controls in the future.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Nov 23, 2023
@squidfunk
Copy link
Owner

Documentation added in a6772cf.

@squidfunk
Copy link
Owner

squidfunk commented Nov 23, 2023

Fixes for pagination have been backported in ae05629.

@squidfunk
Copy link
Owner

squidfunk commented Nov 23, 2023

Released as part of 9.4.11+insiders-4.44.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

3 participants