diff options
| author | Matt Kosarek <matt.kosarek@canonical.com> | 2026-03-11 17:49:05 -0400 |
|---|---|---|
| committer | Matt Kosarek <matt.kosarek@canonical.com> | 2026-03-11 17:49:05 -0400 |
| commit | 77b0f69d0c6e555349dd491d7ca209924d119e61 (patch) | |
| tree | 095cf20002f5df752c04c20af4366588bd7ba32b /src/content/config.ts | |
| parent | c929a29c728c6799a3f83f5ad5c1c6f99ed516d4 (diff) | |
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 }; |
