跳到正文
cccskills
免费在 GitHub 公开

hugo-template-guidance

Use whenever you need to understand how this theme works — adding pages, managing content, configuring the site, using partials/components/modules, project architecture, scripts, or styling/theming (Tailwind v4, Bootstrap 5, or a hybrid — verify which). Use for ANY question about the structure, usage, or customization of the template or theme.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(12)

  • SKILL.md2.7 KB
  • references/adding-new-pages.md6.1 KB
  • references/component-usage.md4.8 KB
  • references/content-management.md2.3 KB
  • references/detect-mode.md2.2 KB
  • references/hugo-modules.md2.5 KB
  • references/i18n-guidance.md1.6 KB
  • references/page-configuration.md2.2 KB
  • references/preflight-checks.md1.2 KB
  • references/project-architecture.md3.5 KB
  • references/script-usage.md2.6 KB
  • references/styling-and-theming.md4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Template Guidance

Handbook for this theme (Hugo Extended + Hugo Modules; styling is Tailwind v4, Bootstrap 5, or a hybrid — verify before assuming), assuming the standard project-setup layout (site at root, theme vendored in themes/<theme>/ — the single folder under themes/; see references/detect-mode.md to find its name). Progressive disclosure: read the matching references/ file before acting.

If exampleSite/hugo.toml exists, the repo is still in theme-setup — run <pm> project-setup first (see references/detect-mode.md) before using anything below.

Package manager: <pm> is a placeholder for this project's package manager. Detect it from a lock file (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lock/bun.lockb) or package.json's packageManager field before running any command below — don't assume pnpm. Details: references/script-usage.md.

Routing Guide

RequestRead
Detect or convert setup mode (theme-setup vs project-setup)references/detect-mode.md
pre-flight checks (Node, Hugo version, package manager)references/preflight-checks.md
Architecture, folder layout, data flowreferences/project-architecture.md
Add a page, route, or homepage sectionreferences/adding-new-pages.md
Partials, components, shortcodes, Hugo Modulesreferences/component-usage.md
Add, remove, or enable a Hugo Module (module.toml)references/hugo-modules.md
Markdown content, frontmatter, taxonomiesreferences/content-management.md
Add/configure a new language, multilingual, i18n, translatereferences/i18n-guidance.md
Site config, menus, social, feature toggles, SEOreferences/page-configuration.md
Package manager detection, scripts, generators, module updatesreferences/script-usage.md
Styling/theming (Tailwind v4, Bootstrap 5, or hybrid — verify first), dark mode, design tokensreferences/styling-and-theming.md

Steps

  1. Read the matching reference.
  2. Follow it.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题