Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

hugohugo 搜索

Agent Skill

hugo 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

447

周安装

19

GitHub Stars

公开资料未说明

下载量

157
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hugo(hugo 搜索)
来源仓库:https://github.com/alahmadiq8/skills
仓库路径:skills/hugo
安装命令:
npx skills add https://github.com/alahmadiq8/skills --skill hugo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alahmadiq8/skills --skill hugo

简介

hugo 提供静态站点生成器 Hugo 的快速参考文档和常用命令速查表。

  • 适用于需要快速创建新站点、主题或内容,并本地预览开发环境的开发者。
  • 支持构建生产版本、最小化输出及导航到变更内容等功能,提升建站效率。
  • 安装方式:github,命令为 npx skills add https://github.com/alahmadiq8/skills --skill hugo。
  • 注意:本技能不包含自动化部署逻辑,仅提供本地开发辅助信息,需配合其他 CI/CD 工具使用。

SKILL.md

Hugo Static Site Generator

Quick Reference

Core Commands

hugo new site my-site        # Create new site
hugo new theme my-theme      # Create theme skeleton
hugo new content posts/my-post.md  # Create content
hugo server -D               # Dev server (include drafts)
hugo server --navigateToChanged    # Auto-navigate to changed content
hugo                         # Build site to public/
hugo --minify                # Build with minified output
hugo --gc                    # Build and clean unused cache
hugo mod init github.com/user/repo  # Initialize Hugo modules

Project Structure

my-site/
├── hugo.toml              # Site configuration
├── archetypes/            # Content templates for `hugo new`
│   └── default.md
├── assets/                # Files processed by Hugo Pipes (Sass, JS, images)
├── content/               # Site content (Markdown)
├── data/                  # Data files (JSON, TOML, YAML)
├── i18n/                  # Translation strings
├── layouts/               # Templates (override theme)
├── static/                # Static files copied as-is
├── themes/                # Installed themes
└── public/                # Generated site (build output)

Workflow

Creating a New Site

  1. Run hugo new site <name> to scaffold
  2. Configure hugo.toml — see references/configuration.md
  3. Add a theme (install or create custom) — see references/theme-development.md
  4. Create content with hugo new content <section>/<name>.md
  5. Run hugo server -D for live development
  6. Build with hugo --minify for production

Theme Development

Create custom themes or modify existing ones. See references/theme-development.md for:

  • Theme directory structure and skeleton
  • Template lookup order
  • Base templates (baseof.html) and blocks
  • Partials and partial caching
  • List and single templates
  • Taxonomy and term templates

Templating

Write Go templates for layouts, partials, and shortcodes. See references/templating.md for:

  • Go template syntax and functions
  • Context (the dot .) and variable scoping
  • Range, with, if/else patterns
  • Custom shortcodes
  • Template debugging

Content Management

Organize and manage site content. See references/content-management.md for:

  • Page bundles (leaf vs branch)
  • Front matter fields
  • Sections and taxonomies
  • Menus
  • Multilingual / i18n
  • Content archetypes

Asset Pipeline

Process images, CSS/Sass, JavaScript, and more. See references/asset-pipeline.md for:

  • Image processing (resize, crop, filters, WebP)
  • Sass/SCSS compilation
  • JavaScript bundling with esbuild
  • Fingerprinting and SRI
  • PostCSS / Tailwind CSS integration

Deployment

Deploy to hosting platforms. See references/deployment.md for:

  • Netlify configuration
  • Vercel setup
  • Cloudflare Pages
  • GitHub Pages with Actions
  • General CI/CD patterns

Best Practices

  • Keep images with content: Use page bundles (index.md + images in same directory) so Hugo can process them
  • Use hugo.toml config directory for complex sites: split into config/_default/hugo.toml, menus.toml, params.toml
  • Asset pipeline minimum: Always minify, fingerprint, and use slice for CSS/JS bundles
  • Override, don't fork themes: Place overriding templates in project layouts/ — Hugo's union file system gives project files precedence over theme files
  • Use partials for DRY templates: Break complex templates into focused partials; use partialCached for expensive operations
  • Content organization mirrors URL structure: Top-level directories under content/ become sections
  • Draft workflow: Use draft: true in front matter; hugo server -D shows drafts, production build excludes them
  • Use archetypes: Define content templates in archetypes/ for consistent front matter across content types

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.67%
按下载量换算58

Claude

26.86%
按下载量换算42

Cursor

18.35%
按下载量换算29

Gemini CLI

9.53%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills