Using the command: hugo new [relative new content path]
, you can start a content file with the date and title automatically set. While this is a welcome feature, active writers need more : archetypes.
It is pre-configured skeleton pages with default front matter. Please refer to the documentation for types of page to understand the differences.
To create a Chapter page, run the following commands
hugo new --kind chapter <name>/_index.md
It will create a page with predefined Front-Matter:
---
date: 2016-04-10T23:17:49+02:00
icon: <b>X. </b>
title: index
weight: 0
---
### Chapter X
# Some Chapter title
Lorem ipsum
To create a default page, run either one of the following commands
# Either
hugo new <chapter>/<name>/index.md
# Or
hugo new <chapter>/<name>.md
It will create a page with predefined Front-Matter:
---
date: 2016-04-09T17:51:50+02:00
title: index
toc: true
weight: 5
---
Lorem Ipsum
Don’t forget that Hugo-theme-learn supports only one level under a chapter