Skip to content

WIP: Adds (hacky) tracking of paginations#38

Open
slightlyoff wants to merge 11 commits into11ty:mainfrom
slightlyoff:pagination-aware
Open

WIP: Adds (hacky) tracking of paginations#38
slightlyoff wants to merge 11 commits into11ty:mainfrom
slightlyoff:pagination-aware

Conversation

@slightlyoff
Copy link

@slightlyoff slightlyoff commented Aug 9, 2025

Fixes #37

The basic idea is that blocks declared in pages iterated over via frontmatter paginations will be available to the paginating page as well as the pages declaring the blocks. This has some limitations. For instance, iterations over collections aren't handled; e.g. in the front page of the 11ty base blog project. Sites that grab templateContent from a collection without a paginating over the same collection won't get merged blocks, but this is the status quo so I'm not sure how bad that is.

@slightlyoff
Copy link
Author

Ok, added some minimal tests. Can you take a look, @zachleat?

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.

Bundler is not pagination aware

2 participants