summaryrefslogtreecommitdiff
path: root/src/content.config.ts
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-03 13:59:59 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-03 13:59:59 +0300
commit4b9018b6d92ef8f1854d9dc44625295c2acd3fb3 (patch)
tree10e01ec849c7439befd0a21f04021213e98d0f94 /src/content.config.ts
parentf100d259d2ffebe61fef56ea3964f6d534d598c8 (diff)
Cleanup old notes feature
Diffstat (limited to 'src/content.config.ts')
-rw-r--r--src/content.config.ts13
1 files changed, 1 insertions, 12 deletions
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 };