feat: pages collection (privacy/disclaimer/contact) editable in CMS
This commit is contained in:
+12
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user