Skip to content

Hugo โ€” Run and Build

Requirements:

  • Install Hugo (Extended) and Git
  • Optional: Go (for some themes/tools)

Install Hugo:

Windows (Chocolatey):

Terminal window
choco install hugo-extended -y

macOS (Homebrew):

Terminal window
brew install hugo

Verify:

Terminal window
hugo version

Create a new site:

Terminal window
hugo new site my-hugo-site
cd my-hugo-site
git init

Add a theme (example: PaperMod):

Terminal window
git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod
echo 'theme = "PaperMod"' >> hugo.toml

Add your first page:

Terminal window
hugo new posts/hello-world.md

Run locally (dev server with live reload):

Terminal window
hugo server -D

Visit http://localhost:1313

Build static site (output to public/):

Terminal window
hugo

Deploy public/ to your static host (e.g., Netlify, GitHub Pages, S3).