From 9d8742e9b40047c0b6b8d386382e1136c31a3065 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:07:04 +0100 Subject: Configures news collection --- src/content/config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/content/config.ts (limited to 'src') 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, +}; -- cgit v1.2.3