-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set default frontmatter format #9363
Comments
@bep Is there any way to create a new post with toml frontmatter? |
@ktprograms the "hugo new" post now uses whatever format lives in the archetype file -- so what you want to do is to create a custom template(s) in the /archetype folder. We used to respect the mentioned setting, but it became really complicated to maintain after we got archetype folder and templating support ... |
@bep I see. Thanks. So I would either modify the syntax in the |
Yea, that's right -- I would probably just edit the default... |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
When creating a new site with
hugo new site blog -f toml
, the configuration file is correctly in a toml format, but when creating new posts withhugo new test.md
, the frontmatter is in a yaml format.As far as I can see, there isn't any configuration option to set the default frontmatter format, so this issue can be solved one of two ways:
hugo new site
, don't mention that the-f
option can control theconfig & frontmatter format
The text was updated successfully, but these errors were encountered: