Hugo static site generator with Tailwind v4, headless CMS (Sveltia/Tina), Cloudflare deployment. Use for blogs, docs sites, or encountering theme installation, frontmatter, baseURL errors.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/secondsky/claude-skills/blob/main/plugins/hugo/skills/hugo/SKILL.md -a claude-code --skill hugoInstallation paths:
.claude/skills/hugo/# Hugo Static Site Generator **Status**: Production Ready | **Last Updated**: 2025-11-21 **Latest Version**: hugo@0.152.2+extended | **Build Speed**: <100ms --- ## Quick Start (5 Minutes) ### 1. Install Hugo Extended **CRITICAL**: Always install Hugo **Extended** edition (not Standard) unless you're certain you don't need SCSS/Sass support. Most themes require Extended. ```bash # macOS brew install hugo # Linux (Ubuntu/Debian) wget https://github.com/gohugoio/hugo/releases/download/v0.152.2/hugo_extended_0.152.2_linux-amd64.deb sudo dpkg -i hugo_extended_0.152.2_linux-amd64.deb # Verify Extended edition hugo version # Should show "+extended" ``` **Why this matters:** - Hugo Extended includes SCSS/Sass processing - Most popular themes (PaperMod, Academic, Docsy) require Extended - Standard edition will fail with "SCSS support not enabled" errors - Extended has no downsides (same speed, same features + more) ### 2. Create New Hugo Site ```bash # Use YAML format (not TOML) for better CMS compatibility hugo new site my-blog --format yaml # Initialize Git cd my-blog git init # Add PaperMod theme (recommended for blogs) git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod ``` **CRITICAL:** - Use `--format yaml` to create hugo.yaml (not hugo.toml) - YAML is required for Sveltia CMS and recommended for TinaCMS - TOML has known bugs in Sveltia CMS beta - Git submodules require `--recursive` flag when cloning later ### 3. Configure and Build ```yaml # hugo.yaml - Minimal working configuration baseURL: "https://example.com/" title: "My Hugo Blog" theme: "PaperMod" languageCode: "en-us" enableRobotsTXT: true params: ShowReadingTime: true ShowShareButtons: true defaultTheme: auto # Supports dark/light/auto ``` ```bash # Create first post hugo new content posts/first-post.md # Run development server (with live reload) hugo server # Build for production hugo --minify # Output is in public/ directory ``` --- #