A Beginner’s Guide to Creating a Static Website with Hugo
- create a
thrash
folder insidebands
- move
metallica.md
there - visit
http://localhost:1313/bands/thrash/
—where you’ll see a blank page
To fix this, you have to create a content/bands/thrash/_index.md
file:
---title: Thrash Bands Archive---
After that, the http://localhost:1313/bands/thrash/
page will list all posts inside the thrash
section.
Archetypes
The next term we’ll discuss is called an archetype. Basically, archetypes serve as blueprints that are used when creating new content files using the hugo new
command. Specifically, archetypes dictate which front matter variables your content should have.
So, when you run this:
hugo new bands/my_band.md
… Hugo will utilize the first archetype found in one of the following files: