diff options
Diffstat (limited to 'src/content/config.ts')
| -rw-r--r-- | src/content/config.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..d8c4bec --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,12 @@ +import { defineCollection, z } from 'astro:content'; + +const posts = defineCollection({ + type: 'content', + schema: z.object({ + title: z.string(), + date: z.string(), + tags: z.array(z.string()), + }), +}); + +export const collections = { posts }; |
