Minor post fixes. Makes posts publishable with a date
This commit is contained in:
@@ -10,7 +10,8 @@ const blog = defineCollection({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
// Transform string to Date object
|
||||
pubDate: z.coerce.date(),
|
||||
// Presence of this value indicates that the post is published
|
||||
pubDate: z.coerce.date().optional(),
|
||||
updatedDate: z.coerce.date().optional(),
|
||||
heroImage: image().optional(),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user