Enhancement: Allow multiple frontmatter types
See original GitHub issueIs your feature request related to a problem? Please describe. My Hugo website currently uses TOML frontmatter for new content; however, I also have a large amount of YAML. Hugo copes with this fine, so it would be great for Frontmatter to support that as well if possible!
Describe the solution you’d like
To allow multiple frontmatter types, perhaps distinguished by the characters used as guards. E.g. ---
seems standard for YAML, while +++
is standard for TOML. Could the frontmatterType option be changed to an array of accepted frontmatter types?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Settings - Front Matter CMS
Some of the Front Matter settings can be split in multiple files to make management of these easier. For example, in case you...
Read more >Issues · estruyf/vscode-front-matter - GitHub
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs,...
Read more >Front Matter | Jekyll • Simple, blog-aware, static sites
Similar to categories, one or multiple tags can be added to a post. Also like categories, tags can be specified as a YAML...
Read more >Front Matter Templates | Forestry.io
Front Matter Templates work by allowing developers to define which Fields are available to editors when editing pages, content types or data ...
Read more >Enhance Obsidian with a type system for notes and database ...
It would also be great to give yaml fields in the content of a note. Proposed solution The Dataview plugin recently gave support...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just tried it, all seems to be working!! Thanks!
Changed the logic of Front Matter to automatically detect this per file, no need for setting changes.
The original setting is still used for the creation of new files.
PS: This is testable in the latest BETA version.