You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With hugo new site -f toml name-of-site (or -f json or -f yaml), the format of the configuration file can be changed. Currently, this does not change the format used for frontmatter in new content.
I think it might be a good idea to generate different archetypes/default.md files based on the format selected when creating a new Hugo site.
If you want to make it really customisable, maybe add a --frontmatter-format option to hugo new site so that the frontmatter format can be set independently of the config file format. This would also allow the frontmatter in the default archetype to be in Org Mode format.
The text was updated successfully, but these errors were encountered:
The majority of sites that I have seen use TOML for config and YAML for front matter.
Creating a new site is an infrequent task.
The effort required to manually change the archetype format after site creation is minimal.
The selection of formats is opinionated. For example, I would never use YAML for front matter, but I might use YAML for a complex site configuration. To some extent this is a tabs/spaces discussion, which is fruitless, because everyone knows spaces are the correct choice.
(follow up to #9363)
With
hugo new site -f toml name-of-site
(or-f json
or-f yaml
), the format of the configuration file can be changed. Currently, this does not change the format used for frontmatter in new content.I think it might be a good idea to generate different
archetypes/default.md
files based on the format selected when creating a new Hugo site.If you want to make it really customisable, maybe add a
--frontmatter-format
option tohugo new site
so that the frontmatter format can be set independently of the config file format. This would also allow the frontmatter in the default archetype to be in Org Mode format.The text was updated successfully, but these errors were encountered: