Skip to content

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