hugo
This skill provides comprehensive knowledge for building static websites with Hugo static site generator. It should be used when setting up Hugo projects (blogs, documentation sites, landing pages, portfolios), integrating Tailwind CSS v4 for custom styling, integrating headless CMS systems (Sveltia CMS or TinaCMS), deploying to Cloudflare Workers with Static Assets, configuring themes and templates, and preventing common Hugo setup errors. Use this skill when encountering these scenarios: scaffolding new Hugo sites, choosing between Hugo Extended and Standard editions, integrating Tailwind CSS v4 with Hugo Pipes, configuring hugo.yaml or hugo.toml files, integrating PaperMod or other themes via Git submodules, setting up Sveltia CMS or TinaCMS for content management, deploying to Cloudflare Workers or Pages, troubleshooting baseURL configuration, resolving theme installation errors, fixing frontmatter format issues (YAML vs TOML), preventing date-related build failures, setting up PostCSS with Hugo, or setting up CI/CD with GitHub Actions. Keywords: hugo, hugo-extended, static-site-generator, ssg, go-templates, papermod, goldmark, markdown, blog, documentation, docs-site, landing-page, sveltia-cms, tina-cms, headless-cms, cloudflare-workers, workers-static-assets, wrangler, hugo-server, hugo-build, frontmatter, yaml-frontmatter, toml-config, hugo-themes, hugo-modules, multilingual, i18n, github-actions, version-mismatch, baseurl-error, theme-not-found, tailwind, tailwind-v4, tailwind-css, hugo-pipes, postcss, css-framework, utility-css, hugo-tailwind, tailwind-integration, hugo-assets
What this skill does
# Hugo Static Site Generator **Status**: Production Ready **Last Updated**: 2025-11-04 **Dependencies**: None (Hugo is a standalone binary) **Latest Versions**: [email protected]+extended, PaperMod@latest, Sveltia CMS@latest --- ## 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 ``` --- ## The 7-Step Setup Process ### Step 1: Installation and Verification **Install Hugo Extended** using one of these methods: **Method 1: Homebrew (macOS/Linux)** ✅ Recommended ```bash brew install hugo ``` **Method 2: Binary Download (Linux)** ```bash # Check latest version: https://github.com/gohugoio/hugo/releases VERSION="0.152.2" wget https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_linux-amd64.deb sudo dpkg -i hugo_extended_${VERSION}_linux-amd64.deb ``` **Method 3: Docker** ```bash docker run --rm -it -v $(pwd):/src klakegg/hugo:ext-alpine ``` **Method 4: NPM Wrapper** (not recommended, may lag behind) ```bash npm install -g hugo-bin ``` **Verification:** ```bash hugo version # Should output: hugo v0.152.2+extended # ^^^^^^^^ Must show "+extended" ``` **Key Points:** - Extended edition required for SCSS/Sass - Version should be v0.149.0+ for best compatibility - NPM wrapper may be behind official releases - Pin version in CI/CD (see Step 7) ### Step 2: Project Scaffolding **Create new site with YAML configuration:** ```bash hugo new site my-site --format yaml cd my-site ``` **Directory structure created:** ``` my-site/ ├── hugo.yaml # Configuration (YAML format) ├── archetypes/ # Content templates │ └── default.md ├── content/ # All your content goes here ├── data/ # Data files (JSON/YAML/TOML) ├── layouts/ # Template overrides ├── static/ # Static assets (images, CSS, JS) ├── themes/ # Themes directory └── public/ # Build output (generated, git ignore) ``` **CRITICAL:** - Use `--format yaml` for CMS compatibility - Never commit `public/` directory to Git - Create `.gitignore` immediately (see Step 3) ### Step 3: Theme Installation **Recommended Method: Git Submodule** ✅ ```bash # Popular themes: # - PaperMod (blogs): https://github.com/adityatelange/hugo-PaperMod # - Book (docs): https://github.com/alex-shpak/hugo-book # - Academic (research): https://github.com/HugoBlox/theme-academic-cv # - Ananke (general): https://github.com/theNewDynamic/gohugo-theme-ananke git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod ``` **Alternative: Hugo Modules** (advanced) ```bash hugo mod init github.com/username/my-site # In hugo.yaml: # module: # imports: # - path: github.com/adityatelange/hugo-PaperMod ``` **Add theme to hugo.yaml:** ```yaml theme: "PaperMod" ``` **When cloning project with submodules:** ```bash git clone --recursive https://github.com/username/my-site.git # Or if already cloned: git submodule update --init --recursive ``` **Key Points:** - Git submodules are recommended over manual downloads - `--depth=1` saves space (no theme history) - Always run `git submodule update --init --recursive` after clone - Hugo Modules are more advanced but don't require Git submodules ### Step 4: Configuration **hugo.yaml - Complete Example (PaperMod blog):** ```yaml baseURL: "https://example.com/" title: "My Hugo Blog" theme: "PaperMod" languageCode: "en-us" defaultContentLanguage: "en" enableRobotsTXT: true buildDrafts: false buildFuture: false buildExpired: false enableEmoji: true minify: disableXML: true minifyOutput: true params: env: production title: "My Hugo Blog" description: "A blog built with Hugo and PaperMod" author: "Your Name" ShowReadingTime: true ShowShareButtons: true ShowPostNavLinks: true ShowBreadCrumbs: true ShowCodeCopyButtons: true defaultTheme: auto # dark, light, auto socialIcons: - name: twitter url: "https://twitter.com/username" - name: github url: "https://github.com/username" menu: main: - identifier: posts name: Posts url: /posts/ weight: 10 - identifier: about name: About url: /about/ weight: 20 outputs: home: - HTML - RSS - JSON # Required for search ``` **Configuration Formats:** - **YAML** (recommended): `hugo.yaml` - Better CMS compatibility - **TOML** (legacy): `hugo.toml` - Default but problematic with Sveltia CMS - **JSON**: `hugo.json` - Rarely used **Environment-Specific Configs:** ``` config/ ├── _default/ │ └── hugo.yaml ├── production/ │ └── hugo.yaml # Overrides for production └── development/ └── hugo.yaml # Overrides for local dev ``` ### Step 5: Content Creation **Create content with Hugo CLI:** ```bash # Blog post hugo new content posts/my-first-post.md # Page hugo new content about.md # Nested documentation hugo new content docs/getting-started/installation.md ``` **Frontmatter Format (YAML recommended):** ```yaml --- title: "My First Post" date: 2025-11-04T10:00:00+11:00 draft: false tags: ["hugo", "blog"] categories: ["General"] description: "A brief description for SEO" cover: image: "/images/cover.jpg" alt: "Cover image" --- # Post content starts here This is my first Hugo blog post! ``` **TOML Frontmatter (for reference only):** ```toml +++ title = "My First Post" date = 2025-11-04T10:00:00+11:00 draft = false tags = ["hugo", "blog"] +++ ``` **Key Points:** - Use `---` delimiters for YAML frontmatter - Use `+++` delimiters for TOML frontmatter - `draft: false` required for post to appear in production - `date` in future = post won't publish (unless `--buildFuture` flag used) - Content goes after frontmatter closing delimiter ### Step 6: Build and Development **Development server (with live reload):** ```bash # Start server hugo server # With drafts visible hugo server --buildDrafts # With future-dated posts hugo server --buildFuture # Bind to specific port hugo server --port 1314 # Access at: http://localhost:1313 ``` **Production build:** ```bash # Basic build hugo # With minification (recommended) hugo --minify # With specific baseURL (for deployment) hugo --minify --baseURL https://example.com # Or use en
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".