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

Enhancement: read and apply frontmatter kept in json files at directory level #828

Open
simoncox opened this issue Jun 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@simoncox
Copy link

simoncox commented Jun 28, 2024

Is your feature request related to a problem? Please describe.
With 11ty we are able to create a json file at directory level and in that apply frontmatter data to all files in that directory.
FM is not recognising these. For example when I apply the type front matter to a blog post in my blog folder

Describe the solution you'd like
For FM to recognise there is a directory level json file with frontmatter in it and utilise it. Perhaps add that in a way that it is not editable on each post but is used in the Front Matter data (because changing it in a post would cause issues - do you change all of them or just this one - in which case that need to add it to the post front matter and then there woudl be clash - so info and FM front end use only - sorting and filtering etc.)

Describe alternatives you've considered
Duplication of the frontmatter into the .md files which would mean going back through all files and adding it in FM - bit laborious!

Additional context
11ty is very flexible and I appreciate that FM can actually work with it!
More details here: https://www.11ty.dev/docs/data-template-dir/

@simoncox simoncox added the enhancement New feature or request label Jun 28, 2024
@estruyf
Copy link
Owner

estruyf commented Jul 3, 2024

Thanks, @simoncox, for suggesting this. I'll take a look at 11ty and its functionality to see how we can add support in FM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants