fix: rename notes to log
This commit is contained in:
@@ -15,4 +15,19 @@ const workshop = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { workshop };
|
||||
const log = defineCollection({
|
||||
loader: glob({ base: './src/content/log', pattern: '**/*.{md,mdx}' }),
|
||||
schema: ({ image }) =>
|
||||
z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.coerce.date(),
|
||||
updatedDate: z.coerce.date().optional(),
|
||||
heroImage: image().optional(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
private: z.boolean().optional()
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
export const collections = { workshop, log };
|
||||
|
||||
Reference in New Issue
Block a user