Card Tree

Last Edit: 2026-06-09

Creates navigation cards for a given context.

On the home page, creates cards for sections only. On section and page pages, creates cards for all pages. Includes a page counter when multiple pages are nested. Uses card partial to create cards. Used on the home and section layouts by default.

Usage

Partial

{{ partial "card-tree" . }}

References

1


  1. The Hugo Authors. “Sections .” 2026. ↩︎