We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I use Directory Data File for localization (en.json -> {"locale": "en"}), and want to use locale variable in front matter.
To Reproduce Steps to reproduce the behavior: Use ---js front matter and directory data file:
Expected behavior I expect to be substituted with the locale value "en"
Environment:
Additional context It's work with liquid, but I cant use before to filter out some item:
The text was updated successfully, but these errors were encountered:
Hi @ivanov-v
Looking at the sources of data documentation, it seems to me that Front Matter Data takes precedence over Directory Data Files.
I think that this implies that you can use only use data from sources higher up in the cascade, meaning that
I'm not an expert but this is how I understand the documentation.
Does this make sense to you?
Regards, Samuel
Sorry, something went wrong.
Maybe related to #915 ?
This is almost certainly related to Data Deep Merge. This is now enabled by default in Eleventy 1.0 and newer https://www.11ty.dev/docs/data-deep-merge/
No branches or pull requests
Describe the bug
I use Directory Data File for localization (en.json -> {"locale": "en"}), and want to use locale variable in front matter.
To Reproduce
Steps to reproduce the behavior:
Use ---js front matter and directory data file:
Expected behavior
I expect to be substituted with the locale value "en"
Environment:
Additional context
It's work with liquid, but I cant use before to filter out some item:
The text was updated successfully, but these errors were encountered: