Skip to content

Commit 209497b

Browse files
jice-lavocatmatcornic
authored andcommitted
Added info about 'draft:true' (#74)
Not sure it's the best place to go in the documentation, but I thought this might prevent new Hugo user to wonder why no content was listed.
1 parent 0d9c29b commit 209497b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exampleSite/content/basics/installation/_index.en.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ hugo new --kind chapter basics/_index.md
5858

5959
By opening the given file, you should see the property `chapter=true` on top, meaning this page is a _chapter_.
6060

61+
By default all chapters and pages are created as draft. If you want to render these pages, remove the property `draft: true` from the metadata.
62+
6163
## Create your first content pages
6264

6365
Then, create content pages inside the previous chapter. Here are two ways to create content in the chapter :
@@ -97,4 +99,4 @@ A `public` folder has been generated, containing all statics content and assets
9799

98100
{{% notice note %}}
99101
This website can be automatically published and hosted with [Netlify](https://www.netlify.com/) (Read more about [Automated HUGO deployments with Netlify](https://www.netlify.com/blog/2015/07/30/hosting-hugo-on-netlifyinsanely-fast-deploys/)). Alternatively, you can use [Github pages](https://gohugo.io/hosting-and-deployment/hosting-on-github/)
100-
{{% /notice %}}
102+
{{% /notice %}}

0 commit comments

Comments
 (0)