From 4b9018b6d92ef8f1854d9dc44625295c2acd3fb3 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 3 Jul 2025 13:59:59 +0300 Subject: Cleanup old notes feature --- src/content.config.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/content.config.ts') diff --git a/src/content.config.ts b/src/content.config.ts index 5930884..c85d88e 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -37,17 +37,6 @@ const post = defineCollection({ }), }); -const note = defineCollection({ - loader: glob({ base: "./src/content/note", pattern: "**/*.{md,mdx}" }), - schema: baseSchema.extend({ - description: z.string().optional(), - publishDate: z - .string() - .datetime({ offset: true }) // Ensures ISO 8601 format with offsets allowed (e.g. "2024-01-01T00:00:00Z" and "2024-01-01T00:00:00+02:00") - .transform((val) => new Date(val)), - }), -}); - const micro = defineCollection({ loader: pleromaLoader({ instanceUrl: "https://social.craftknight.com", @@ -69,4 +58,4 @@ const tag = defineCollection({ }), }); -export const collections = { post, note, tag, micro }; +export const collections = { post, tag, micro }; -- cgit v1.2.3