summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
commit6d3da9537200e4029d3c9e1b6140f601642f26da (patch)
tree4454964a5910cacf6bef160ec7d679b6aa08eaa2 /src/content
parent506d97a7d16fa186beee3eda314492d9297e90c5 (diff)
Backup
Diffstat (limited to 'src/content')
-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(),
+ }),
}),
};