feat: pages collection (privacy/disclaimer/contact) editable in CMS

This commit is contained in:
ctao
2026-07-24 23:11:57 +02:00
parent cf35739a64
commit a8c0e802e2
6 changed files with 88 additions and 1 deletions
+12 -1
View File
@@ -19,4 +19,15 @@ const news = defineCollection({
}),
});
export const collections = { news };
// Static portal pages (privacy, disclaimer, contact…) — separate collection
// because the content type differs (no dates/covers/categories), and editors
// get a distinct "Pages" section in the CMS.
const pages = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/pages' }),
schema: z.object({
title: z.string(),
description: z.string().optional(),
}),
});
export const collections = { news, pages };