Hugo Static Site Setup Guide

Why Hugo

Hugo is one of the fastest static site generators available. Written in Go, it compiles sites in milliseconds. Ideal for blogs, documentation, and personal note sites.

Key advantages:

Project Structure

doc-tools-cms/
├── hugo.toml          # Site config
├── justfile           # Command runner
├── content/
│   ├── zh/post/       # Chinese content
│   └── en/post/       # English content
└── themes/xmin/       # Theme

Common Commands

Managed via justfile:

CommandDescription
just devStart dev server (includes drafts)
just buildBuild production version
just cleanClean build artifacts

Creating a New Post

hugo new content post/my-new-post.md

Hugo auto-generates front matter from archetypes/default.md.

Next Steps