secondsky/claude-skills / plugins/hugo/skills/hugo
hugo
UnverifiedHugo static site generator with Tailwind v4, headless CMS (Sveltia/Tina), Cloudflare deployment. Use for blogs, docs sites, or encountering theme installation, frontmatter, baseURL errors.
templates/hugo-docs/content/docs/advanced/customization.md
View on GitHub---
title: "Customization"
weight: 1
---
# Customization
Learn how to customize the appearance and behavior of your documentation site.
## Custom CSS
Add custom styles by creating `assets/custom.css`:
```css
/* Custom styles */
.book-menu {
background-color: #f8f9fa;
}
.book-brand {
font-weight: bold;
}
```
Then reference it in your layout or configuration.
## Custom Layouts
Override theme layouts by creating matching files in your `layouts/` directory:
```
layouts/
├── _default/
│ ├── baseof.html # Base template
│ └── single.html # Single page template
└── partials/
├── docs/ # Documentation partials
│ ├── header.html
│ └── footer.html
└── menu.html # Sidebar menu
```
## Frontmatter Options
Control page behavior with frontmatter:
```yaml
---
title: "Page Title"
weight: 1 # Order in menu
bookToc: true # Show TOC
bookHidden: false # Hide from menu
bookCollapseSection: false # Start collapsed
bookFlatSection: false # Flat menu structure
bookSearchExclude: false # Exclude from search
---
```
## Adding a Logo
Add a logo to `static/logo.png` and configure:
```yaml
params:
BookLogo: "/logo.png"
```
## Custom Shortcodes
Create reusable content blocks in `layouts/shortcodes/`:
```go-html-template
<!-- layouts/shortcodes/note.html -->
<div class="note">
{{ .Inner | markdownify }}
</div>
```
Use in content:
```markdown
{{</* note */>}}
This is a custom note block.
{{</* /note */>}}
```
## Multi-language Support
Configure multiple languages:
```yaml
languages:
en:
languageName: "English"
weight: 1
de:
languageName: "Deutsch"
weight: 2
```
## Search Customization
Customize search behavior:
```yaml
outputs:
home:
- HTML
- RSS
- JSON
params:
BookSearch: true
# Exclude certain sections from search
BookSearchExclude:
- "/blog"
```
## Theme Customization
Hugo Book supports these params:
- `BookTheme`: Theme variant (auto/light/dark)
- `BookMenuBundle`: Custom menu structure
- `BookPortableLinks`: Portable markdown links
- `BookServiceWorker`: Enable offline support
See the [Hugo Book documentation](https://github.com/alex-shpak/hugo-book) for more options.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |