Draft
Syntax
PAGE.Draft
Returns
bool
By default, Hugo does not publish draft pages when you build your site. To include draft pages when you build your site, use the --buildDrafts command line flag.
content/posts/post-1.md
 
 
 
---
draft: true
title: Post 1
---+++
draft = true
title = 'Post 1'
+++{
   "draft": true,
   "title": "Post 1"
}
{{ .Draft }} → true