Skip to main content

Hugo Cheatsheet for This Site

Quick reference for the commands and file layout I keep forgetting.

Commands

hugo server -D      # dev server, include drafts
hugo --gc           # production build into public/

Where things live

Path Purpose
content/posts/ blog posts
content/notes/ reference notes
data/menu/extra.yaml header/footer menu entries
themes/hugo-geekblog/ theme (git submodule)

Remember

The theme must be built once after a fresh clone:

cd themes/hugo-geekblog && npm install && npm run build