diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-12 22:33:11 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-12 22:33:11 +0200 |
| commit | 6d3da9537200e4029d3c9e1b6140f601642f26da (patch) | |
| tree | 4454964a5910cacf6bef160ec7d679b6aa08eaa2 /src/content/config.ts | |
| parent | 506d97a7d16fa186beee3eda314492d9297e90c5 (diff) | |
Backup
Diffstat (limited to 'src/content/config.ts')
| -rw-r--r-- | src/content/config.ts | 5 |
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(), + }), }), }; |
