Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hugo

БесплатноБез исполняемых скриптовНе проверен

Hugo static site generator with Tailwind v4, headless CMS (Sveltia/Tina), Cloudflare deployment. Use for blogs, docs sites, or encountering theme…

secondskyот secondsky★ 257 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Hugo Static Site Generator

Status: Production Ready | Last Updated: 2026-08-03 Latest Version: [email protected]+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.

# macOS
brew install hugo

# Linux (Ubuntu/Debian)
wget https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_extended_0.164.0_linux-amd64.deb
sudo dpkg -i hugo_extended_0.164.0_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

# 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

# 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
# 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

Critical Rules

Always Do

✅ Install Hugo Extended (not Standard) - required for SCSS/Sass support in themes ✅ Use YAML configuration (--format yaml) - better CMS compatibility than TOML ✅ Add themes as Git submodules - easier updates and version control ✅ Set correct baseURL - prevents broken asset links on deployment ✅ Pin Hugo version in CI/CD - prevents version mismatch errors between local and deployment ✅ Add public/ to .gitignore - build output should not be committed ✅ Use draft: false - drafts don't appear in production builds ✅ Clone with --recursive flag - ensures theme submodules are fetched ✅ Use relative paths for images - /images/photo.jpg not ../images/photo.jpg ✅ Test build before deploying - catch errors locally with hugo --minify

Never Do

❌ Don't install Hugo Standard - most themes require Extended edition ❌ Don't use TOML config with Sveltia CMS - has known bugs, use YAML instead ❌ Don't commit public/ directory - it's generated output, not source code ❌ Don't use different Hugo versions - local vs CI/CD version mismatch causes errors ❌ Don't forget submodules: recursive - themes won't load in CI/CD ❌ Don't hardcode production URLs - use -b $CF_PAGES_URL or environment configs ❌ Don't push resources/_gen/ - generated assets, should be in .gitignore ❌ Don't use future dates carelessly - posts won't publish until date passes ❌ Don't skip .hugo_build.lock - add to .gitignore ❌ Don't mix YAML and TOML - stick to one format throughout project


Top 5 Errors Prevention

This skill prevents 15 documented errors. Here are the top 5:

Error #1: Version Mismatch (Hugo vs Hugo Extended)

Error: Error: SCSS support not enabled Prevention: Always install Hugo Extended edition. Verify with hugo version | grep extended See: references/error-catalog.md for full error list

Error #2: baseURL Configuration Errors

Error: Broken CSS/JS/image links, 404s on all assets Prevention: Use environment-specific configs or build flag: hugo -b $CF_PAGES_URL See: references/error-catalog.md #2

Error #3: Theme Not Found Errors

Error: Error: module "PaperMod" not found, blank site Prevention: Set theme: "PaperMod" in hugo.yaml and run git submodule update --init --recursive See: references/error-catalog.md #6

Error #4: Hugo Version Mismatch (Local vs Deployment)

Error: Features work locally but fail in CI/CD, or vice versa Prevention: Pin Hugo version everywhere (CI/CD, local docs, package.json if using npm) See: references/error-catalog.md #4

Error #5: Git Submodule Not Found in CI/CD

Error: Theme works locally but not in CI/CD, blank site on deployment Prevention: Add submodules: recursive to checkout action in GitHub Actions See: references/error-catalog.md #11

For complete error catalog (all 15 errors): See `references/er

Полный SKILL.md на GitHub

Установить hugo в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/advanced-topics.mdreferences/cms-integration.mdreferences/common-patterns.mdreferences/error-catalog.mdreferences/setup-guide.mdreferences/tailwind-integration.mdtemplates/hugo-blog/.github/workflows/deploy.ymltemplates/hugo-blog/.gitmodulestemplates/hugo-blog/.hugo_build.locktemplates/hugo-blog/README.mdtemplates/hugo-blog/archetypes/default.mdtemplates/hugo-blog/content/posts/first-post.mdtemplates/hugo-blog/hugo.yamltemplates/hugo-blog/static/admin/config.ymltemplates/hugo-blog/static/admin/index.htmltemplates/hugo-blog/themes/PaperMod/.github/ISSUE_TEMPLATE/bug.yamltemplates/hugo-blog/themes/PaperMod/.github/ISSUE_TEMPLATE/config.ymltemplates/hugo-blog/themes/PaperMod/.github/ISSUE_TEMPLATE/enhancement.yamltemplates/hugo-blog/themes/PaperMod/.github/PULL_REQUEST_TEMPLATE.mdtemplates/hugo-blog/themes/PaperMod/.github/workflows/gh-pages.ymltemplates/hugo-blog/themes/PaperMod/LICENSEtemplates/hugo-blog/themes/PaperMod/README.mdtemplates/hugo-blog/themes/PaperMod/assets/css/common/404.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/archive.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/footer.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/header.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/main.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/post-entry.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/post-single.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/profile-mode.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/search.csstemplates/hugo-blog/themes/PaperMod/assets/css/common/terms.csstemplates/hugo-blog/themes/PaperMod/assets/css/core/license.csstemplates/hugo-blog/themes/PaperMod/assets/css/core/reset.csstemplates/hugo-blog/themes/PaperMod/assets/css/core/theme-vars.csstemplates/hugo-blog/themes/PaperMod/assets/css/core/zmedia.csstemplates/hugo-blog/themes/PaperMod/assets/css/extended/blank.csstemplates/hugo-blog/themes/PaperMod/assets/css/includes/chroma-mod.csstemplates/hugo-blog/themes/PaperMod/assets/css/includes/chroma-styles.csstemplates/hugo-blog/themes/PaperMod/assets/css/includes/scroll-bar.css

FAQ

Что делает скилл hugo?

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.

Как установить скилл hugo?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hugo запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hugo с