A Front matter patterns
Each pattern holds only the keys that establish the page’s role; add presentation keys when a reader-facing need asks for them. The chapter named under each pattern explains its keys.
Docs group
A directory with this _index.md becomes a sidebar group whose page lists its
children. See Chapter 3.
Docs page
The Chinese peer, quick-start.zh.md, keeps the same weight and the same
heading IDs. See Chapter 3.
Blog root
See Chapter 6.
Immersive column
Posts under this column open on a full-width image, with the outline in the text column and no sidebar; feeds, bylines and series are unchanged. See Chapter 6.
Blog post
A featured.webp beside index.md becomes the thumbnail and share image.
authors and series need their taxonomies declared in hugo.yaml. See
Chapter 6.
Author profile
See Chapter 6.
Book root
The root holds book-toc and the index shortcodes, and its print output is
the whole book as one document. See Chapter 7.
Book chapter
book_number is printed exactly as written; book_status: draft labels the
chapter without unpublishing it. See Chapter 7.
Where each key takes effect
| Key | Set on | Effect |
|---|---|---|
weight |
Any page | Order among siblings in the sidebar, the pager and the book contents |
type |
A section root, passed down by cascade |
The reading shell: docs, blog or book |
cascade |
A section root | Applies its keys to every page below |
blog_index |
A blog root or column | list, cards, table or gallery |
featured_image |
A blog column or post | none, banner, wash or hero on the article |
book_number |
A book chapter | The chapter number, shown as written |
outputs |
A section root | Replaces the site’s output list for that page |