Sha256: eb214f3c65e8e74e7e5a8a3600a9492a67f4902d2c9b8abbf247d8dfff49afaa
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
--- title: Archetypes weight: 10 --- 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](https://gohugo.io/content/archetypes/). It is pre-configured skeleton pages with default front matter. Please refer to the documentation for types of page to understand the differences. ## Chapter {#archetypes-chapter} 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: ```markdown +++ title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 chapter = true pre = "<b>X. </b>" +++ ### Chapter X # Some Chapter title Lorem Ipsum. ``` ## Default 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: ```markdown +++ title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 +++ Lorem Ipsum. ```
Version data entries
5 entries across 5 versions & 1 rubygems