eleventy-plugin-bundle
eleventy-plugin-bundle copied to clipboard
WIP: Adds (hacky) tracking of paginations
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.
Ok, added some minimal tests. Can you take a look, @zachleat?