A minimal developer blog built with Hugo.
Install Hugo (extended version not required):
# macOS
brew install hugo
# Windows (scoop)
scoop install hugo
# Windows (choco)
choco install hugo
# Linux (snap)
snap install hugo# Start dev server with drafts
hugo server -D
# Site available at http://localhost:1313
# Auto-reloads on file changeshugo new posts/my-new-post.mdEdit the file in content/posts/my-new-post.md. Set draft: false when ready to publish.
hugo --minifyOutput goes to public/ directory.
- Push this repo to GitHub
- Go to Cloudflare Pages
- Create new project → Connect to Git → Select your repo
- Build settings:
- Build command:
hugo --minify - Build output directory:
public - Environment variable:
HUGO_VERSION=0.140.0
- Build command:
- Deploy!
Every push to main will auto-deploy.
├── content/posts/ # Blog posts (markdown)
├── content/about.md # About page
├── layouts/ # HTML templates
├── static/css/ # Stylesheet
├── static/js/ # Theme toggle
└── hugo.toml # Configuration
- Site title/author: Edit
hugo.toml - Colors: Edit CSS variables in
static/css/style.css - Intro text: Edit
layouts/index.html - About page: Edit
content/about.md
See DEVLOG.md for detailed explanations of how everything works.