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

Enable pagination for data pages #232

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jaygooby
Copy link

@jaygooby jaygooby commented Mar 17, 2022

Add this to your data page's frontmatter

pagination:
   enabled: true

Instead of paginating posts, the pagination
will be for the entries in that page's data. So if your data page was cats.md and you had a _data/cats.json the pagination would happen for the cats array.

Add this to your data page's frontmatter
# pagination:
#   enabled: true
#
# Instead of paginating posts, the pagination
# will be for the entries in that page's data. So if your
# datapage was cats.md and you had a _data/cats.json
# the pagination would happen for the cats array.
@jaygooby
Copy link
Author

Ugh, sorry about some of the whitespace changes

@jaygooby
Copy link
Author

Hmm, this is buggy when you also have non-data pagination. I'll force push the changes once I've fixed

@y377
Copy link

y377 commented Aug 17, 2023

Hmm, this is buggy when you also have non-data pagination. I'll force push the changes once I've fixed

@jaygooby Hello, Excuse me, is it fixed? I didn't see the docs updated, thank you!

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.

2 participants