11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
16.93k stars 491 forks source link

Core pagination support for double layered pagination #461

Closed zachleat closed 5 years ago

zachleat commented 5 years ago

Related issue #332, something with a little bit more DX might be warranted since this has come up a few times now.

zachleat commented 5 years ago

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with 👍!

distinctperspective commented 4 years ago

I converted too. @zachleat I can help you with that.

MWDelaney commented 2 years ago

I needed this kind of thing for a recent project and this is what I came up with. Related to #332, also.

https://gist.github.com/MWDelaney/6dd60be5e4c223217d597983d20bde20

jeromecoupe commented 2 years ago

Yup, using the same kind of approach, albeit using custom taxonomies instead of tags:

https://github.com/jeromecoupe/11ty-paginate-taxonomies

MWDelaney commented 2 years ago

Expanding the above into a working example...

After much heartache, and many compromises, I have paginated dynamic tag pages for blogging working.

I made a pull request against ZeroPoint demonstrating it: https://github.com/MWDelaney/ZeroPoint/pull/31

I'm sure this could be simplified, and pagination more directly modified, but it works!

dave-kennedy commented 1 year ago

I'm confused by the status of this issue. It's pinned to the top of the issues list, so I would expect a canonical answer here. @zachleat can you please clarify? Is the recommended solution this one? If so, it might make more sense to pin that issue instead.