Is 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?
**Is 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?
<!-- github-sync-id:1236364091 -->
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.
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.
<!-- github-comment-id:1128933817 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Is 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?Thank you @SG60 for the suggestion!
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.
Just tried it, all seems to be working!! Thanks!
Thanks for testing it out @SG60.
It will be release in v7.3.0