DocsKnowledge base
Frontmatter Patterns
The Starlight frontmatter fields most worth using in the early life of this docs site.
The fields below are enough to get most pages right without overthinking configuration.
Minimal page
Section titled “Minimal page”---title: Page Titledescription: One-sentence summary of the page.---Useful fields to learn first
Section titled “Useful fields to learn first”template
Section titled “template”Use template: splash for landing pages like the homepage.
Leave the default doc layout for normal content pages.
tableOfContents
Section titled “tableOfContents”Set tableOfContents: false on short runbooks and checklists where the right rail would just be noise.
editUrl
Section titled “editUrl”Set editUrl: false if a page should not show an edit link.
sidebar.badge
Section titled “sidebar.badge”Use this to label pages like new, stub, or recommended.
sidebar: badge: text: stub variant: tipUse hero only on splash pages that need a landing-page feel.
hero: tagline: Short supporting sentence. actions: - text: Start Here link: /docs/guides/getting-started/ icon: right-arrowAdvice
Section titled “Advice”- Put the real page summary in
description; it helps readers and metadata. - Avoid heavy frontmatter unless the page actually needs it.
- Keep layout decisions boring and consistent until the content model is stable.