-
Notifications
You must be signed in to change notification settings - Fork 633
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
Add select maximum number of posts per page #866
Conversation
✅ Deploy Preview for toha-ci ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @BernatBC for the PR. Look like a reasonable feature to add. I just requested two small adjustments. Otherwise, the PR looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @BernatBC!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look like the build is failing. Can you please fix that?
I added it to the example site. |
I'll fix it now |
Issue
None, it's just a feature.
Description
With this parameter you can select the maximum number of posts that will appear to each page. It will default to 12 (the value that we were using before). To configure it, just add the following lines under the
params
section ofconfig.yaml
:Before I add this into the guides and the example file, tell me if you want to change the name of the parameter, or if I have to change the location of it.
Test Evidence
maxPostsPerPage=5
maxPostsPerPage=10