eleventy
eleventy copied to clipboard
Add support for index.* Directory Data Files
support global / constant basename like index
for Directory Data File
so when renaming directories, we dont have to rename the directory data files too
.eleventy.js
module.exports = function(eleventyConfig) {
return {
jsDataFileBase: 'index',
};
};
some/path/index.11tydata.json
{
"tags": "someTag"
}
some/path/someFile.md
# hello
now some/path/someFile.md
(and other files in some/path/
) is tagged with someTag
todo: add docs and tests