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

Open
opened 2026-10-05 02:58:37 +02:00 by adam · 1 comment
Owner

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/

**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/ <!-- github-sync-id:2380033194 -->
Author
Owner

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

Thanks, @simoncox, for suggesting this. I'll take a look at 11ty and its functionality to see how we can add support in FM. <!-- github-comment-id:2205281945 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#652