Paginated tag-based archives #1993
Unanswered
khawkins98
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Not sure if there is an easy way to do dual pagination, but these threads might have some hot tips(tm):
@zachleat said in #776 (comment):
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Stumped on how to elegantly make something like
site.com/archive/tag-name/page-3
I'm familiar with 11ty's pagination methods and this: https://www.11ty.dev/docs/quicktips/tag-pages/
Those methods do allow you to loop through posts/an object to make:
site.com/archive/tag-name-1
site.com/archive/tag-name-2
site.com/archive/tag-name-3
However in my case we want to have, say, 9 posts per archive page. So a secondary loop is needed.
site.com/archive/tag-name-1/page-1
site.com/archive/tag-name-1/page-2
site.com/archive/tag-name-1/page-3
site.com/archive/tag-name-2/page-1
site.com/archive/tag-name-2/page-2
site.com/archive/tag-name-2/page-3
With
pagination
sensibly only supporting one level of loops, is there a good way to achieve what I want? Surely someone else has tried this, but Google gives me nothing.I've considered somehow dynamically generating a
.njk
post per tag name, but it feels awfully hacky and inelegant.Beta Was this translation helpful? Give feedback.
All reactions