Why this matters
Frontmatter is the control plane for a static content site. If fields are inconsistent, metadata, archives, feeds, and related posts become unreliable.
Setup
Define required fields for title, description, publish date, category, tags, and draft status. Add optional SEO override fields only when they are useful.
Implementation notes
Validate frontmatter with Astro Content Collections. This catches missing descriptions and unsupported categories during build instead of after a bad page is published.
Final checklist
- Required fields are validated
- Categories use a fixed list
- SEO overrides are optional