Frontmatter cheatsheet
The full frontmatter schema is defined in src/content.config.ts. Every custom
field is .optional() — the only required key is title:.
Complete field reference
Section titled “Complete field reference”---# ── Required ─────────────────────────────────────────────────────────────title: Post title # required by Starlight
# ── SEO / preview ────────────────────────────────────────────────────────description: One sentence (≤160 chars) # meta description, social preview
# ── Post metadata (all optional) ─────────────────────────────────────────date: 2026-07-30 # ISO 8601 datepubDate: 2026-07-30 # alias for date (either works)showDate: true # opt in to display the datetags: [kubernetes, security, rbac] # lowercase, kebab-casedraft: true # hide from Recent posts + noindex
# ── Sidebar controls ─────────────────────────────────────────────────────sidebar: hidden: true # hide from sidebar entirely label: Custom label # override sidebar text order: 1 # lower first (default: alphabetical) badge: text: Lab # small tag next to sidebar item variant: tip # note | tip | success | danger | caution
# ── Hero image (Starlight built-in) ──────────────────────────────────────hero: tagline: Optional subtitle image: file: ../../assets/hero.webp # relative from the page actions: - text: Read more link: /kubernetes/ icon: right-arrow
# ── Page template ────────────────────────────────────────────────────────template: splash # or "doc" (default)---Minimum viable frontmatter
Section titled “Minimum viable frontmatter”For an Obsidian-friendly .md post with no bells and whistles:
---title: My new note---That’s it. Everything else is optional.
Common patterns
Section titled “Common patterns”---title: Lab · Break-glass RBAC recoverydescription: Recovering cluster access when your admin role is misbound.date: 2026-07-30tags: [kubernetes, rbac, incident]showDate: truesidebar: badge: text: Lab variant: tip------title: SAA-C03 · VPC and Networkingdescription: VPC subnets, route tables, NAT, endpoints, Transit Gateway.date: 2026-07-15tags: [aws, saa-c03, network]sidebar: order: 1 # add a badge only if you want visual grouping BEYOND the folder name: # badge: # text: SAA-C03 # variant: success------title: Notes on ArgoCD sync wavesdescription: Ordering resource application in a GitOps rollout.draft: true---draft: true hides the page from Recent posts and adds noindex. Remove
the flag when publishing.
---title: Kubernetesdescription: Notes on running production-grade Kubernetes.sidebar: hidden: true---Use for every index.mdx in a section — reachable via LinkCards from home
or from the section’s parent card grid.
The showDate opt-in
Section titled “The showDate opt-in”Dates are off by default. To reveal the date:
date: 2026-07-30showDate: trueThat single flag controls both places:
- Recent posts on the homepage — date column appears.
- Post page — a small monospace date renders under the
<h1>.
Leave showDate off for evergreen reference material.
tags: [kubernetes, saa-c03, network]- Lowercase, kebab-case (
saa-c03, notSAA-C03). - Use
?in searches — Omnisearch (Obsidian) still finds them. - Currently not clickable on the site — they exist for future tag pages.