hugo
БесплатноБез исполняемых скриптовНе проверенHugo is a static site generator that turns Markdown content and templates into a complete HTML website in seconds, with no database or server runtime. Use…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Hugo — Static sites from Markdown and templates
Overview
Hugo is a single binary that reads a project directory (content, templates, assets, configuration) and writes a finished website to public/. It includes a development server with live reload, asset pipelines for CSS, JavaScript and images, multilingual support, and taxonomies such as tags and categories. Reach for it when the result is documentation, a blog, a landing page or a company site that can be served as plain files.
Instructions
Installation
brew install hugo # macOS and Linux
winget install Hugo.Hugo.Extended # Windows
choco install hugo-extended # Windows, alternative
scoop install hugo-extended # Windows, alternative
hugo version
Linux distributions package it too (snap install hugo, apt install hugo, dnf install hugo, pacman -S hugo), but apart from the snap these repositories are often behind the current release. Check hugo version afterwards: this skill assumes v0.158.0 or later. Prebuilt archives for every platform are on https://github.com/gohugoio/hugo/releases/latest.
Hugo ships in four editions: standard, deploy, extended and extended/deploy. Standard is enough unless the site needs hugo deploy (deploy editions) or the deprecated LibSass transpiler (extended editions). Sass through Dart Sass works in every edition. Most package managers install an extended edition.
Create a project
hugo new project saltmarsh-journal
cd saltmarsh-journal
git init
git submodule add https://github.com/gohugo-ananke/ananke themes/ananke
hugo new site is an alias for the same command and is what older tutorials show. Add --format yaml to get hugo.yaml instead of hugo.toml. The skeleton contains archetypes/, assets/, content/, data/, i18n/, layouts/, static/ and themes/. Browse themes at https://themes.gohugo.io/, or scaffold one with hugo new theme harbor.
Configure the site
baseURL = 'https://journal.saltmarshbakery.co/'
locale = 'en-gb'
title = 'Saltmarsh Bakery Journal'
theme = 'ananke'
enableRobotsTXT = true
[params]
description = 'Recipes and notes from a small coastal bakery'
menus.main
name = 'Recipes'
pageRef = '/recipes'
weight = 10
[permalinks.page]
posts = '/:year/:month/:slug/'
This is hugo.toml in the project root. baseURL must start with the protocol and end with a slash. locale replaced languageCode in v0.158.0. Put custom values under [params]. Keep the file short: set only what differs from the defaults.
hugo config | grep -i baseurl # show the effective configuration
Write content
hugo new content content/posts/first-sourdough-loaf.md
Run it from the project root. The file is created from archetypes/default.md (or archetypes/posts.md when it exists) with draft = true. A finished post looks like this:
+++
date = '2026-09-14T08:30:00+01:00'
draft = true
title = 'First Sourdough Loaf'
tags = ['sourdough', 'starter']
+++
Feed the starter twice before mixing the dough.
Front matter delimited by +++ is TOML, --- is YAML. Reserved fields include title, date, draft, publishDate, expiryDate, slug, weight, description and aliases; custom fields go under params. A page is left out of the build when draft is true, date or publishDate is in the future, or expiryDate has passed.
Preview locally
hugo server --buildDrafts --navigateToChanged
The server listens on http://localhost:1313/ (bound to 127.0.0.1), rebuilds on every change and reloads the browser. It runs until interrupted, so start it in the background or let the user run it. Useful flags: --port 1414, --bind 0.0.0.0 to reach it from another device, --disableFastRender for full re-renders.
Build for production
hugo build --gc --minify --cleanDestinationDir
Plain hugo runs the same build. Output goes to public/. Hugo overwrites files there but does not delete old ones; --cleanDestinationDir removes stale files from public/, which matters after unpublishing a page. Override settings per build with --baseURL, --destination and --environment.
Review content status
hugo list drafts
hugo list future
hugo list expired
hugo list published
Each prints CSV with the columns path,slug,title,date,expiryDate,publishDate,draft,permalink,kind,section.
Environments and environment variables
hugo build --environment staging
HUGO_BASEURL=https://staging.saltmarshbakery.co/ hugo build
The environment is production for hugo build and development for hugo server. Settings can be split into config/_default/hugo.toml plus overrides such as config/staging/hugo.toml. Any setting can come from a variable prefixed with HUGO_; site parameters use HUGO_PARAMS_. Variables win over the configuration file.
Themes as Hugo Modules
hugo mod in
Установить hugo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hugo?
Hugo is a static site generator that turns Markdown content and templates into a complete HTML website in seconds, with no database or server runtime. Use when a user asks to create a Hugo site or blog, add a theme, write posts with front matter, preview with hugo server, configure hugo.toml, build the site for production, find unpublished drafts, or deploy a Hugo site to GitHub Pages or a cloud bucket.
Как установить скилл hugo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hugo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic