feat: pinned blog post
This commit is contained in:
parent
be89d82c17
commit
573b0eef89
4 changed files with 15 additions and 5 deletions
|
|
@ -6,7 +6,8 @@ const posts = defineCollection({
|
|||
loader: glob({ pattern: '**/*.md', base: './src/content/posts' }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date()
|
||||
date: z.coerce.date(),
|
||||
pinned: z.boolean().optional()
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue