Skip to content

Enhancement: Allow multiple frontmatter types #337

@SG60

Description

@SG60

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions