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
eleventyImport
, a front matter configuration option to declare template dependency
#975
Comments
|
Just as an example, say your blog index page iterates over Shipping with 2.0.0-canary.21 (Renamed for canary 21) |
eleventyImportCollections
, a front matter configuration option to declare template dependency
Docs building to https://www.11ty.dev/docs/data-configuration/ (they point back here for now, sorry!) |
eleventyImportCollections
, a front matter configuration option to declare template dependencyeleventyImport
, a front matter configuration option to declare template dependency
Does this support collections added in config with
is it then possible to use |
@megheaiulian yes exactly—I would expect collection names added via |
The final docs for this ended up at https://www.11ty.dev/docs/collections/#declare-your-collections-for-incremental-builds |
I've tried the example above and had problems with circular dependencies when trying to loop thru a |
Ah in the end what fixed my problem was |
I have collection, created with // eleventy.config.js
eleventyConfig.addCollection('articles', (collectionAPI) => {
return collectionAPI.getFilteredByGlob('src/articles/*/*.md')
}) and data file for article template, that uses collection // src/pages/article/article.11tydata.js
module.exports = {
layout: 'base',
pagination: {
data: 'collections.articles',
size: 1,
alias: 'article'
},
eleventyImport: {
collections: ['articles']
}
} when i change md-file, template doesn't render in incremental mode: [11ty] File changed: src/articles/one/index.md
[11ty] Wrote 0 files (skipped 32) in 0.03 seconds (v2.0.1) |
We attempt to glean template dependencies automatically to process templates in the correct order but as an escape hatch this might be nice.
The text was updated successfully, but these errors were encountered: