diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:07:04 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:11:30 +0100 |
| commit | 9d8742e9b40047c0b6b8d386382e1136c31a3065 (patch) | |
| tree | 994ae9f3e3f438f742e8ce6e36f38ef54c1abc99 /src/content/config.ts | |
| parent | c5204bca3d9d932eb249d8a8b5dfe3144160fdd9 (diff) | |
Configures news collection
Diffstat (limited to 'src/content/config.ts')
| -rw-r--r-- | src/content/config.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..599c570 --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,13 @@ +import { defineCollection, z } from 'astro:content'; + +const news = defineCollection({ + type: 'content', + schema: z.object({ + title: z.string(), + summary: z.string(), + }), +}); + +export const collections = { + news: news, +}; |
