Open navClose nav

How to use YAML or JSON for Front Matter with Hugo?

Forestry respects the configuration set in your Hugo config file. The variable you have to set to change the default Front Matter format is called metaDataFormat.

## Possible options "yaml", "toml" or "json"
metaDataFormat = "toml"
## Possible options "yaml", "toml" or "json"
metaDataFormat: "yaml"
tomlyaml

This option has now been deprecated in recent Hugo versions. The format is now based on the front matter used in your archetypes.


Last updated on January 15, 2019