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.
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.
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 ofarchetypes\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
)?Does this issue reproduce with the latest release?
Yes.