Front matter patterns
A Front matter patterns
These patterns are intentionally small. Copy the fields that establish the content contract, then add presentation options only when a reader-facing need requires them.
Book section root
The root declares the Book shell and generated outputs. It does not need a chapter number; numbering belongs to the material that appears in the reading sequence.
Book chapter
Use book_status: draft for a visible editorial state. Unlike Hugo’s
draft: true, it keeps the page available in a normal build so reviewers can
read the unfinished chapter.
Immersive Blog article
The article remains part of the Blog family—feeds, authors, series, and sharing continue to work—while the keys above change only its reading presentation.
Generated output matrix
| Output | Scope | Typical use |
|---|---|---|
| HTML | One root or chapter | Reading, navigation, and search |
| The complete Book | Review, printing, and PDF conversion | |
| markdown | The source-shaped Book | Export and downstream processing |
The generated contents, figure, table, equation, and example indexes on the Book root prove these contracts together. Keep explicit heading and object IDs aligned between translations so every format preserves the same references.