-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add pagination info to sections #2653
Conversation
components/content/src/ser.rs
Outdated
@@ -162,6 +162,9 @@ pub struct SerializingSection<'a> { | |||
backlinks: Vec<BackLink<'a>>, | |||
generate_feeds: bool, | |||
transparent: bool, | |||
paginated: bool, |
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.
No need for that one, let's match what is in the frontmatter
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.
I just removed the unecessary paginated
attribute and retrieved raw values from the frontmatter.
Adapted testsite: testsite.zip
`paginated` attributes removed
Changes have been requested in Zola PR: getzola/zola#2653. This requieres minor adaptation on properties used to reversed pagination.
Changes have been requested in Zola PR: getzola/zola#2653. This requieres minor adaptation on properties used to reversed pagination.
* Add pagination info to get_section * Add documentation for pagination information * Stick to section properties `paginated` attributes removed
Objective of this small update is to add some minimal information about pagination in the section itself for cases where the paginator is not available (e.g. when using
get_section
).A small site for testing the feature is attached to this PR: testsite.zip.
This feature has been discussed in issue 2473.
Sanity check:
Code changes
(Delete or ignore this section for documentation changes)
next
branch?If the change is a new feature or adding to/changing an existing one: