mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
633 B
633 B
title | description | categories | keywords | action | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BuildDrafts | Reports whether the current build includes draft pages. |
|
By default, draft pages are not published when building a site. You can change this behavior with a command line flag:
hugo --buildDrafts
Or by setting buildDrafts
to true
in your site configuration:
{{< code-toggle file=hugo >}} buildDrafts = true {{< /code-toggle >}}
Use the BuildDrafts
method on a Site
object to determine the current configuration:
{{ .Site.BuildDrafts }} → true