fix: rename notes to log

This commit is contained in:
2025-11-07 11:53:16 +01:00
parent 9b676693b8
commit b8afcb77f7
12 changed files with 1218 additions and 712 deletions

View File

@@ -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 };