New Page¶
hugo new ${PAGE_PATH}
This will create a new file - ${PAGE_PATH}.md
...
Use _index.md
as the "home" page instead of index.md
, as this will be used alongside the relevant layout... index.md
will also seemingly cause silent build issues...
Front Matter¶
Pages have "front matter" that provides metadata about the page... for example:
--- title: "" date: 2019-08-17T15:50:53Z draft: true ---
Supported formats are: - TOML, wrapped by +++
- YAML, wrapped by ---
- JSON, as a single object {...}
Useful keys are: - categories
- description
- slug
(served page path) - tags
- type
(NOTE: some themes require the correct type, e.g: terminal requires "posts") - author