-
-
Notifications
You must be signed in to change notification settings - Fork 556
Open
Open
Education
Copy link
Labels
bugeducationfeature: 🏔 data cascadeIssues related to the Data Cascade featureIssues related to the Data Cascade featurefeature: 🛠 configurationRelated to Eleventy’s Configuration fileRelated to Eleventy’s Configuration file
Description
Operating system
macOS Ventura 13.2.1
Eleventy
2.0.0
Describe the bug
I’m trying to use a custom base file name so that I can use the following directory data files1:
.
├── articles
│ ├── 2023-03-18-example.md
│ └── _data.json
└── notes
├── 2023-03-18-1.md
└── _data.json
However, the custom base file name only appears to work if the .11tydata suffix is provided:
Using default config (data files share same name as directory):
- ✅
[directory_name].11tydata.json - ✅
[directory_name].json
Using eleventyConfig.setDataFileBaseName("_data"):
- ✅
_data.11tydata.json - ❌
_data.json
Setting eleventyConfig.setDataFileSuffixes([""]) has no effect, either.
Footnotes
-
I actually want to use a custom data format, YAML, so that I can use
_data.yamlfiles, but given the natively supported JSON format doesn’t work as expected either, using this as my example. ↩
valtlai
Metadata
Metadata
Assignees
Labels
bugeducationfeature: 🏔 data cascadeIssues related to the Data Cascade featureIssues related to the Data Cascade featurefeature: 🛠 configurationRelated to Eleventy’s Configuration fileRelated to Eleventy’s Configuration file