Skip to content
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

Docs for dataFileSuffixes and dataFileDirBaseNameOverride config options #2681

Closed
zachleat opened this issue Dec 7, 2022 · 2 comments
Closed

Comments

@zachleat
Copy link
Member

zachleat commented Dec 7, 2022

// Renamed from `jsDataFileSuffix` in 2.0 (and swapped to an Array)
// If you remove "" we won’t look for dir/dir.json or file.json
dataFileSuffixes: [".11tydata", ""],
// "index" will look for `directory/index.*` directory data files instead of `directory/directory.*`
dataFileDirBaseNameOverride: false,

Note that using the previous API (jsDataFileSuffix) maintains backwards compatibility in the implementation for 2.0

#1699

@zachleat zachleat added this to the Eleventy 2.0.0 milestone Dec 7, 2022
@zachleat
Copy link
Member Author

Docs shipping to the above URLs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant