gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.63k stars 7.45k forks source link

YAML format not set in front matter #12666

Open kfilipan opened 1 month ago

kfilipan commented 1 month ago

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.

fyordsvat commented 1 month ago

The same applies to the JSON Format.

bep commented 1 month ago

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.