PiHuW is a lightweight Hugo theme built on PicnicCSS . It has a small footprint, loads all assets locally (no CDNs by default), and is designed to run on resource-constrained devices such as Raspberry Pi and ESP32 embedded web servers.
Two ways to use this theme
Authors — writing content for a site
You write markdown pages using frontmatter and the {{< hw >}} shortcode. You do not need to understand Hugo
internals, partial call chains, or image processing strings. Sensible defaults are provided for everything.
Start here: Shortcodes → Visual tools → Kitchen sink
Developers — building compatible partials and extending the theme
You write Hugo partial templates in layouts/_partials/tool/ (or tmpl/). The hw shortcode dispatcher, error
handling, help system, opt validation, and asset pipeline are all provided — you only write the rendering logic.
Start here:
Layout templates
→
Developer toolkit
→ CLAUDE.md
How content types and tags work
Hugo assigns every page a type equal to the name of its immediate parent folder under content/. A page at
content/blog/my-post.md has type blog. A page at content/stories/chapter-1.md has type stories.
This matters because several visual tools filter or group pages by type:
{{< hw t = "item-group-by-type" >}}lists the direct children of the current section — the type is derived automatically from the folder name{{< hw t = "blog" >}}is a convenience wrapper that hardcodestype = "blog"
Tags are different: they are taxonomy values declared in page frontmatter and managed by Hugo’s taxonomy system.
Tags span sections and types; a page in content/blog/ and a page in content/stories/ can both carry the tag
"hugo".
| |
Use type to group pages by their structural role in the site (section). Use tags to cross-link pages by topic regardless of where they live.
Discovering shortcode parameters
Every visual tool documents its own parameters inline. Add help = "yes" to any
hw shortcode to replace the rendered output with its help card:
| |
Change t = "image" to any tool name. All other parameters are ignored when
help is present. Remove help = "yes" when you are done.
Theme sections
| Section | What it covers |
|---|---|
| Shortcodes | The hw, pihuw, and H shortcodes - the author entry point |
| Visual tools | Every {{< hw t = "X" >}} component and its parameters |
| Layout templates | Structural partials: head, nav, footer, SEO, pagination |
| Developer toolkit | Value-returning utilities: asset resolution, image processing, opt validation |
| Kitchen sink | One live example of every visual tool |