add notes

Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
Hadi
2026-04-24 16:02:08 +02:00
parent 8eadd0ec01
commit 8a50890037
17 changed files with 1315 additions and 28 deletions
+12
View File
@@ -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,
};