Skip to content
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

YAML format not set in front matter #12666

Closed
kfilipan opened this issue Jul 19, 2024 · 2 comments · Fixed by #12928
Closed

YAML format not set in front matter #12666

kfilipan opened this issue Jul 19, 2024 · 2 comments · Fixed by #12928
Labels
Milestone

Comments

@kfilipan
Copy link

When creating new site with YAML format, default.md stays with TOML front matter and vice versa. I have pinpointed the problems to changes between versions v0.117.0 and v0.118.0. The comparison was done using Scoop on Windows for both -f and --format flags. Also, the same is still present in v0.129.0: creation using --format "yaml" does not include front matter of archetypes\default.md in YAML.

comp-v0.117.0-v0.118.0-f.log
comp-v0.117.0-v0.118.0--format.log
v0.129.0--format.log

What version of Hugo are you using (hugo version)?

$ v0.117.0
$ v0.118.0
$ v0.129.0

Does this issue reproduce with the latest release?

Yes.

@bep bep removed the NeedsTriage label Jul 20, 2024
@bep bep added this to the v0.130.0 milestone Jul 20, 2024
@bep
Copy link
Member

bep commented Jul 20, 2024

We reimplemented the new site command (I guess v0.118.0). I have checked and we now use the --format flag only for the config file, the rest is simple file copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@bep @kfilipan and others