Config == toml, frontmatter == yaml?


#1

Greetings. Hugo 0.50 here. Can anyone tell me why my defualt configuration file style is toml, but all my 'hugo new aaa/bbb.md posts are in yaml format?

I’d very much like to not have to deal with two formats.

TIA for any help,
Jim B.


#2

You can make config file and content front matter both TOML, or both YAML.

To update which format new content files are made with, see hugo docs on archetypes


#3

Thanks for the quick reply. Solved. A newbie moves ahead one square.

–Jim B.


#4

Also, when creating a new site, you can specify the format for config file and content front matter. For example:

hugo new site your-site --format "yaml"