feat: optional dates, otherwise fetched from git
This commit is contained in:
parent
4d9e3c56da
commit
cc6eff22a8
8 changed files with 90 additions and 31 deletions
|
|
@ -7,7 +7,6 @@ const md = defineCollection({
|
|||
loader: glob({ pattern: '**/*.md', base: './src/content/md' }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
pinned: z.boolean().optional(),
|
||||
category: z.string().optional(),
|
||||
draft: z.boolean().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue