Expand schema.
This commit is contained in:
parent
50bb6dc93a
commit
b08bfdc779
1 changed files with 2 additions and 0 deletions
|
|
@ -6,9 +6,11 @@ const notes = defineCollection({
|
||||||
loader: glob({base: './src/notes', pattern: '**/*.{md,mdx}'}),
|
loader: glob({base: './src/notes', pattern: '**/*.{md,mdx}'}),
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
|
subtitle: z.string().optional(),
|
||||||
date: z.string().transform((s) => {
|
date: z.string().transform((s) => {
|
||||||
return new Date(`${s}T00:00:00-0700`);
|
return new Date(`${s}T00:00:00-0700`);
|
||||||
}),
|
}),
|
||||||
|
scripture: z.string().optional(),
|
||||||
meta_description: z.string().optional(),
|
meta_description: z.string().optional(),
|
||||||
sub_heading: z.string().optional(),
|
sub_heading: z.string().optional(),
|
||||||
scripture_category: z.string().default('gospels'),
|
scripture_category: z.string().default('gospels'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue