/hugo-landing:hugo-landingfrom hugo-landing
Scaffolds a Hugo landing page with Tailwind CSS, SEO, multilingual support, analytics, and CI/CD for multiple deploy targets.
Ships in hugo-landing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Creates a complete, buildable Hugo site from the embedded template/. The
result is a single-page landing site (hero, pain points, method, case studies,
about, blog preview, CTA — every section optional) plus a blog with pagination,
tags, RSS, and rich structured data.
Division of labor: the shell scripts in scripts/ handle everything
mechanical (copying, token substitution, deploy config, structure). You handle
everything requiring judgment: the interview, copywriting, translations,
branding, and fixing build warnings. Never re-implement what a script does.
hugo (>= 0.146), node/npm, and git on PATH. If Hugo is missing, tell
the user to install it first (brew install hugo / see gohugo.io).
Ask (AskUserQuestion works well; skip anything already stated):
https://acme.example).
If they don't have a domain yet and chose GitHub Pages, use
https://<user>.github.io/<repo>/.Person entity to
JSON-LD) vs product/company (Organization only).reference/multilingual.md.--no-blog —
the site then ships without any blog files.scripts/scaffold.sh --dir <target> --name "<Site Name>" \
--url <base-url> --deploy <target> [--no-blog]
This copies the template, substitutes __SITE_NAME__ / __SITE_URL__ /
__PACKAGE_NAME__ / __HUGO_VERSION__ (Hugo version auto-resolved from the
local install or the latest GitHub release), installs the deploy target's
config, and runs git init. It refuses non-empty target directories.
With --no-blog (user said no blog in question 6) the scaffold ships no
blog files at all: blog content, archetype, blog/tag layouts, the Blog menu
entry, the homepage blog params and the blog make targets are all removed.
It also activates the tracked pre-commit hook (.githooks/pre-commit, via
git config core.hooksPath .githooks), which runs npm run lint plus a
Hugo build before every commit — the same checks as CI, so regressions
surface locally instead of in GitHub Actions. After a fresh clone of the
site's repo, that one git config command re-enables it.
Edit content/en/_index.md (or the default language's) — the homepage is
entirely front-matter driven. Remove the sections the user didn't ask for —
an absent param removes its section. See reference/content-model.md for
every param.
If the user provided copy: map it onto the selected sections' params, editing only for fit (length, front-matter structure), not voice. Then check coverage: for EVERY selected section, is there user copy for it? For each section with no matching copy, ask the user explicitly for that section's content (one AskUserQuestion round covering all gaps, naming each section and what it needs — e.g. "Pricing: tier names, prices, what's included"). Do not silently fill gaps with invented copy; only draft a gap yourself if the user answers "draft it" for that section.
If the user asked you to draft it: ask for source material (existing site, LinkedIn, pitch) rather than inventing facts, and replace ALL example copy with copy tailored to their business. Never leave the template's example copy in a delivered site.
Also update in config/_default/hugo.toml:
params.description, params.author, params.contactEmail,
params.bookCallUrl, params.social.*params.jsonld.* for personal-brand sites (personName, jobTitle, knowsAbout)params.analytics.* per the interviewparams.footer.* (services list, links, copyright)Replace the example blog post (unless scaffolded with --no-blog) and legal
page with real or clearly-placeholder content per the user's preference. Keep the TOML rule from the template:
scalar params above [[array]] tables in _index.md.
For each extra language:
scripts/add-language.sh --dir <target> --code <xx> --name "<Native Name>"
Then translate what the script stubbed: content/<xx>/ files,
i18n/<xx>.toml values, and the menu names in the appended config block.
Translate the i18n keys yourself — reference/multilingual.md has
ready-made TOML for common languages. hreflang + x-default are emitted
automatically once a page has translations.
Every page must exist, translated, in every language — homepage, blog
posts, legal pages, everything. No language may be missing a page and no
file may be left as an untranslated copy of the source language. verify.sh
(step 6) enforces this and fails otherwise. The same rule applies to any
content added later (e.g. a new blog post): create it in ALL languages with
a shared translationKey.
tailwind.config.js, set primary to a Tailwind
palette (colors.emerald, colors.rose, …) or a custom 50–900 scale.
This swaps the ACCENT color everywhere (utilities and theme() tokens in
themes/landing/assets/css/main.css) — it does not change backgrounds or
text colors.:root block, but layouts also use
hardcoded light Tailwind utilities. Follow reference/dark-theme.md — it
has a ready-made override block and the complete utility remap list; do
not rediscover the remaps by grepping.params.googleFont in hugo.toml (css2 family spec) AND the
matching family name in tailwind.config.js fontFamily.sans. Remove
params.googleFont entirely to load no webfont (system font stack).static/favicon.svg is a placeholder — update its letter/color
minimum, or generate a real set (e.g. realfavicongenerator.net) and extend
the icon links in themes/landing/layouts/_partials/head.html.aboutPortrait, coverImage,
shareImage, authorImage) live under assets/ in the site root (or the
theme) — create the dirs as needed.scripts/verify.sh --dir <target> --smoke
Runs token check, translation-parity check (every page and i18n file must
exist and be translated in every language), npm install, npm run lint
(same as CI), hugo --gc --minify, and a dev-server curl against the
baseURL's path (subpath-aware for GitHub Pages project sites).
Treat any Hugo WARN/deprecation output as actionable: fix it now, so the
site is clean against the Hugo version it will build with. Then make the
initial commit yourself (verify.sh doesn't commit). After the first commit you
may enable enableGitInfo = true in hugo.toml for git-based lastmod dates.
Tell the user:
How to run it — give the exact command for their site:
cd <target-dir> && make run # dev server at http://localhost:1313
(plus make build, and make new-post unless --no-blog). Then ASK whether they want you to
start the dev server now. If yes, run make run (or
hugo server --buildDrafts) as a background process, wait for it to be
ready, and tell them the URL to open. Leave it running for them.
Deploy setup steps for their target — see reference/deploy.md (e.g. for
GitHub Pages: push to GitHub, then Settings → Pages → Source: GitHub Actions).
Where to customize further (content model doc, params).
That analytics only loads in production builds, never hugo server.
_index.md TOML: scalars must stay above [[array]] tables.blogTitle set; the featured post
(featuredPost) must be a valid page path or it's ignored./#section form (the menu partial
makes them work under any baseURL subpath). Section ids in page order:
#problems, #features, #method, #stats, #results, #testimonials,
#pricing, #about, #team, #blog, #open-source, #faq,
#newsletter, #contact.newsletterTitle and newsletterAction
(the provider's form endpoint) — never ship the example.com placeholder.data-analytics-event="name" (click) or
data-analytics-view="name" (visibility) attributes — no JS needed.-b flag; don't hardcode the repo subpath into baseURL params elsewhere.madeWith i18n key). Keep it by
default; only set params.footer.hideMadeWith = true if the user
explicitly asks to remove it.reference/content-model.md (opens in a new tab)reference/dark-theme.md (opens in a new tab)reference/deploy.md (opens in a new tab)reference/multilingual.md (opens in a new tab)scripts/add-language.sh (opens in a new tab)scripts/resolve-hugo-version.sh (opens in a new tab)scripts/scaffold.sh (opens in a new tab)scripts/verify.sh (opens in a new tab)template/Makefile (opens in a new tab)template/archetypes/blog.md (opens in a new tab)template/archetypes/default.md (opens in a new tab)template/config/_default/hugo.toml (opens in a new tab)template/content/en/_index.md (opens in a new tab)template/content/en/blog/_index.md (opens in a new tab)template/content/en/blog/hello-world.md (opens in a new tab)template/content/en/legal/privacy.md (opens in a new tab)template/deploy/amplify/amplify.yml (opens in a new tab)template/deploy/cloudflare/DEPLOY.md (opens in a new tab)template/deploy/netlify/netlify.toml (opens in a new tab)template/eslint.config.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gerodp/hugo-landing-skill --plugin hugo-landingOther plugins' skills for the same job