mirror of
https://github.com/anotherhadi/blog.git
synced 2026-05-20 13:32:33 +02:00
@@ -14,6 +14,18 @@ const blog = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
const notes = defineCollection({
|
||||
loader: glob({ pattern: "**/*.{md,mdx}", base: "./src/content/notes" }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
category: z.string(),
|
||||
tags: z.array(z.string()).default([]),
|
||||
publishDate: z.coerce.date(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
blog,
|
||||
notes,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user