summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-14 21:07:04 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-14 21:11:30 +0100
commit9d8742e9b40047c0b6b8d386382e1136c31a3065 (patch)
tree994ae9f3e3f438f742e8ce6e36f38ef54c1abc99 /src/content
parentc5204bca3d9d932eb249d8a8b5dfe3144160fdd9 (diff)
Configures news collection
Diffstat (limited to 'src/content')
-rw-r--r--src/content/config.ts13
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,
+};