Arrrchetypes
Arrr! Pirrrates
Fello' pirrates, be awarrre some stuff may not work fer us in this trrranslat'n. Like table of rrramblings, see'ng Merrrmaids, do'ng math or chemistrrry and stuff.
Us'n th' command: hugo new [relative new rrrambl'n path]
, ye can start a rrrambl'n file wit' th' date an' title automatically set. While this be a welcome feature, active writers need more: archetypes.
It be pre-configured skeleton planks wit' default front matter. Please refer t' th' documentat'n fer types o' plank t' understand th' differences.
Chapter
T' create a Chapter plank, run th' follow'n commands
hugo new --kind chapter <name>/_index.md
It will create a plank wit' predefined Front-Matter:
+++
chapter = true
pre = "<b>X. </b>"
title = "{{ replace .Name "-" " " | title }}"
weight = 5
+++
### Chapter X
# Some Chapter title
Lorem Ipsum.
Default
T' create a default plank, run either one o' th' follow'n commands either
hugo new <chapter>/<name>/_index.md
or
hugo new <chapter>/<name>.md
It will create a plank wit' predefined Front-Matter:
+++
title = "{{ replace .Name "-" " " | title }}"
weight = 5
+++
Lorem Ipsum.