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

How to split by pages paginated data? #2141

Open
mahnunchik opened this issue Dec 20, 2021 · 2 comments
Open

How to split by pages paginated data? #2141

mahnunchik opened this issue Dec 20, 2021 · 2 comments

Comments

@mahnunchik
Copy link

Is your feature request related to a problem? Please describe.

How to split by pages paginated data? For example for tag pages: https://www.11ty.dev/docs/quicktips/tag-pages/

It would be great to have multiple pages for each tag?

/tags/personal/index.html
/tags/personal/1/index.html
/tags/tech/index.html
/tags/tech/1/index.html
/tags/tech/2/index.html

Permalink pseudoode:

permalink: /tags/{{ tag }}/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}

Describe the solution you'd like

  • Ability to paginate already paginated data.
  • Or pagination by multiple dementions.

Additional context

I have a lot of posts with the same tag, so I would like them to be separated by 10 posts per page.

@solution-loisir
Copy link

I believe what you describe is referred as double layered pagination. It's already a candidate for feature enhancement and is discussed here #332 and here #1120. I made a little demo some times ago. https://eleventy-deep-pagination.netlify.app/

@mahnunchik
Copy link
Author

Yep, double layered pagination solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants