aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/config.ts')
-rw-r--r--src/content/config.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/config.ts b/src/content/config.ts
index 245f20e..4277edc 100644
--- a/src/content/config.ts
+++ b/src/content/config.ts
@@ -3,10 +3,12 @@ import { defineCollection, z } from "astro:content";
const blog = defineCollection({
type: "content",
schema: z.object({
- author: z.string(),
+ basedOn: z.optional(z.string()),
+ dateModified: z.coerce.date(),
+ datePublished: z.coerce.date(),
description: z.string(),
draft: z.optional(z.boolean()),
- pubDate: z.coerce.date(),
+ lang: z.string(),
title: z.string(),
}),
});