Skip to content

Commit 318fb35

Browse files
committed
fix: set description as optional
1 parent 738e01f commit 318fb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const blog = defineCollection({
77
// Type-check frontmatter using a schema
88
schema: z.object({
99
title: z.string(),
10-
description: z.string(),
10+
description: z.string().optional(),
1111
// Transform string to Date object
1212
pubDate: z.coerce.date(),
1313
updatedDate: z.coerce.date().optional(),

0 commit comments

Comments
 (0)