summaryrefslogtreecommitdiff
path: root/src/content/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/config.ts')
-rw-r--r--src/content/config.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content/config.ts b/src/content/config.ts
index 33140f3..17aeedb 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -3,5 +3,10 @@ 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(),
+ }),
}),
};