Frontmatter not starting as toml

hugo new site PATH --format toml creates YAML front matter in archetypes/ (I’d rather not open a bug, so here we are.)

This happens with or without double quotes around toml, as is probably to be expected.

Anyway, the expected behavior is to have TOML front matter, though it always seems to start as:

title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true

And according to the docs, TOML is identified by three + symbols (+++).

Welcome to the forums @zeptoSteve. What version of hugo are you using?

The reasoning for this I suppose is expressed at

I think we need to fix the docs (

  -f, --format string   config & frontmatter format (default "toml")

That’s not true. :slight_smile:

1 Like

0.55.1, installed via Homebrew.

With regard to the reasoning, I don’t use GitHub for anything. I’ll be using this with GitLab. I do understand most people are the other way around, though. Just stating the obvious of “not everybody uses GitHub”.

1 Like