feat: removes git dates, enforces manual dates, and adds some validation to ensure presence
This commit is contained in:
parent
d65342fd73
commit
2a2331e79f
13 changed files with 101 additions and 105 deletions
|
|
@ -7,7 +7,8 @@ const md = defineCollection({
|
|||
loader: glob({ pattern: '**/*.md', base: './content' }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date().optional(),
|
||||
date: z.coerce.date(),
|
||||
updated: z.coerce.date().optional(),
|
||||
pinned: z.boolean().optional(),
|
||||
category: z.string().optional(),
|
||||
related: z.array(z.string()).optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue