Skip to content

Commit

Permalink
docs: explain buildDrafts flag in getting started guide (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Feb 11, 2024
1 parent 392fa73 commit f5ea5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exampleSite/content/en/usage/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ To prepare your new site environment just a few steps are required:
hugo server -D
```

The `-D` or `--buildDrafts` option is used to include content marked as draft during the build. It is used because content pages created with the `hugo new content` command have the `draft` flag set by default and this can lead to build errors in newly created projects. For projects with a production-ready content structure, this flag is not required in most cases and can be omitted.

### Option 1: Download pre-build release bundle

Download and extract the latest release bundle into the theme directory.
Expand Down

0 comments on commit f5ea5f0

Please sign in to comment.