summaryrefslogtreecommitdiff
path: root/old_stuff/src/content/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'old_stuff/src/content/config.ts')
-rw-r--r--old_stuff/src/content/config.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/old_stuff/src/content/config.ts b/old_stuff/src/content/config.ts
new file mode 100644
index 0000000..17aeedb
--- /dev/null
+++ b/old_stuff/src/content/config.ts
@@ -0,0 +1,12 @@
+import { defineCollection, z } from "astro:content";
+
+export const collections = {
+ blogs: defineCollection({
+ type: "content",
+ schema: z.object({
+ title: z.string(),
+ description: z.string().optional(),
+ date: z.date(),
+ }),
+ }),
+};