Overview
Content collections take Astro from a static site generator into a typed content authoring platform. This guide walks through defining a schema, choosing the right loader, and querying the resulting collection from a page or component.
Highlights
- Define schemas with Zod so frontmatter mistakes are caught at build time
- Pick between the built-in glob loader and a custom one for remote sources
- Query collections with getCollection and pass the entries through getStaticPaths
Comments