Why hugo 0.16-1 defaults draft to be false?

I recently installed hugo 0.16.1 with a .deb package on Ubuntu 14.04 running in VirtualBox.

The .deb file was downloaded from the latest github link: https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16-1_amd64.deb.

When I do

Hugo new article/article1.md

The resulted markdown file does not have draft:true in the front matter. metadataformat is yaml.

In hugo’s quickstart guide, the default behavior should be `draft:true’ automatically included. I am not sure if this is a bug in this latest release. Is there some settings you can configure?

Nothing changed here. If you want draft=true as default, you need to set that in your (or the theme’s) archetype template(s).

Oh, I thought draft:true was the default while reading the quick start guide. Thank for the quick reply.

OK, I will go learn how to do an archetype template for my articles/posts that needed draft:true as a default.

1 Like