getCollection(), and render Markdown with render(). Aero validates frontmatter against your schema and hot-reloads when content changes.
Define a collection
Declare collections incontent.config.ts at the project root:
content.config.ts
The content API uses Standard Schema, so you can use Zod, ArkType,
Valibot, or any spec-compliant validator.
Query a collection
UsegetCollection() inside a <script is:build> block to fetch all items:
client/pages/docs/index.html
id (derived from the filename) and a data object with validated frontmatter fields.
Render Markdown
Callrender() to convert a collection item’s Markdown body to HTML:
client/pages/docs/[slug].html