Hugo Cheatsheet for This Site
Quick reference for the commands and file layout I keep forgetting.
hugo server -D # dev server, include drafts
hugo --gc # production build into public/
| Path | Purpose |
|---|---|
content/posts/ |
blog posts |
content/notes/ |
reference notes |
data/menu/extra.yaml |
header/footer menu entries |
themes/hugo-geekblog/ |
theme (git submodule) |
The theme must be built once after a fresh clone:
cd themes/hugo-geekblog && npm install && npm run build