mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
13 lines
231 B
TypeScript
13 lines
231 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|||
|
|||
const blog = defineCollection({
|
|||
schema: z.object({
|
|||
title: z.string(),
|
|||
}).transform(data => ({
|
|||
...data,
|
|||
schemaWorks: true,
|
|||
}))
|
|||
});
|
|||
|
|||
export const collections = { blog };
|