Move services and team content to Markdown

This commit is contained in:
Kevin
2026-09-02 10:43:45 -04:00
parent 8b8c541b3c
commit 1b25dc37a6
12 changed files with 103 additions and 6 deletions
+24 -1
View File
@@ -23,4 +23,27 @@ const faq = defineCollection({
}),
});
export const collections = { blog, faq };
const services = defineCollection({
loader: glob({ base: './sites/www/content/services', pattern: '**/*.md' }),
schema: z.object({
title: z.string().min(3).max(80),
price: z.string().min(2).max(48),
items: z.array(z.string().min(3).max(80)).min(1).max(8),
order: z.number().int().min(0).max(99).default(0),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
}),
});
const team = defineCollection({
loader: glob({ base: './sites/www/content/team', pattern: '**/*.md' }),
schema: z.object({
name: z.string().min(3).max(80),
role: z.string().min(3).max(80),
image: z.string().startsWith('/images/'),
order: z.number().int().min(0).max(99).default(0),
draft: z.boolean().default(false),
}),
});
export const collections = { blog, faq, services, team };