Move services and team content to Markdown
This commit is contained in:
+24
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user