Learning Astro Content Collections
Early-stage notes. Expect this page to change frequently while I get my bearings.
What I’ve picked up so far
- Collections live in
src/content.config.tsand use Zod schemas. - Each collection maps to a folder under
src/content/. - The
slugfor a post is derived from its filename.
Open questions
- Best way to share component code between journal and garden layouts?
- How to render a “last updated” badge conditionally on
updatedDate?