Breadcrumb
Hugo page bundles, stages, and revision history
Articles use Hugo page bundles so the text and its supporting files stay in one directory. This makes it possible to move or archive a complete article without tracking assets in several locations.
Page bundle layout
A basic article bundle has this structure:
content/en/post/a-note/
├── index.md
├── cover.webp
└── audio.ogg
The site uses three conventions:
index.mdcontains the article text and front matter.cover.*supplies the article card image and social metadata image.audio.*optionally supplies an audio version of the article.
The cover description belongs in the page’s coverAlt field. A screen reader user needs the same explanation of the image that a sighted reader receives.
Draft stages
The stage taxonomy records how complete an article is. This site defines three terms:
seedlingbuddingevergreen
The active stage appears near the article header and links to a page listing other articles in the same stage. A note can be published while it is still changing, and its stage can be updated when the text becomes more stable.
Category pages
Category and tag pages can define their own title, description, and cover. Without that metadata, the taxonomy page only reflects its folder name.
Revision history
The history list in front matter records meaningful revisions. Each entry can include:
datestageauthoreditorreviewernote
The article template renders these entries below the main text. Use the history for changes that affect the content, such as a new source, a corrected explanation, or a reorganized section. Typo fixes and formatting-only changes do not need an entry.
Fullscreen pages
Pages that need the full window use type: fullscreen. This layout suits maps, large diagrams, and visual indexes that would be too small inside the normal article column.
Markdown remains the default for article content. Raw HTML is reserved for structures that Markdown cannot express, such as fullscreen embeds and complex figures. Keeping that exception narrow makes those pages easier to find and review.
Publishing checklist
Before publishing a page bundle:
- Put
index.mdand its media files in the same directory. - Set
coverAltwhen the page has a cover image. - Set the
stagevalue to the current maturity of the article. - Add a
historyentry when the revision changes the article’s meaning. - Run
npm run checkand verify the generated page.
Some information might changes over time, we keep redaction up to date.