move projects to collection

This commit is contained in:
2024-09-10 00:14:27 +02:00
parent f911079122
commit 4ffd613de5
14 changed files with 260 additions and 161 deletions
+12
View File
@@ -9,6 +9,18 @@ const posts = defineCollection({
image: z.string().optional(),
}),
});
const projects = defineCollection({
type: 'content',
schema: z.object({
category: z.string(),
name: z.string(),
description: z.string(),
image: z.string().optional(),
links: z.array(z.object({text: z.string(), url: z.string()})),
}),
});
export const collections = {
posts,
projects,
};