Astro content collections are genuinely good

After using Astro’s content collections for this site, I’m impressed by how well they handle the boring parts of content management — type-safe frontmatter validation, automatic slug generation, and collection-scoped queries.

The z.coerce.date() trick is particularly nice. You write date: 2026-02-14 in your frontmatter and Zod coerces it into a proper Date object. No parsing, no edge cases.

The mental model is simple: a collection is a directory of markdown files with a shared schema. Query it, filter it, sort it. Everything is typed.