Skip to content

Commit 10c9e40

Browse files
committed
fix(all): schema optional title
1 parent a6ab87e commit 10c9e40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const fundingAndProjects = defineCollection({
6868
const accessibility = defineCollection({
6969
type: 'content',
7070
schema: z.object({
71-
title: z.string(),
71+
title: z.string().optional(),
7272
layout: z.string().optional(),
7373
variant: z.string().optional(),
7474
}),
@@ -77,7 +77,7 @@ const accessibility = defineCollection({
7777
const banner = defineCollection({
7878
type: 'content',
7979
schema: z.object({
80-
title: z.string(),
80+
title: z.string().optional(),
8181
layout: z.string().optional(),
8282
variant: z.string().optional(),
8383
}),
@@ -86,7 +86,7 @@ const banner = defineCollection({
8686
const landing = defineCollection({
8787
type: 'content',
8888
schema: z.object({
89-
title: z.string(),
89+
title: z.string().optional(),
9090
layout: z.string().optional(),
9191
variant: z.string().optional(),
9292
}),
@@ -95,7 +95,7 @@ const landing = defineCollection({
9595
const researchSupport = defineCollection({
9696
type: 'content',
9797
schema: z.object({
98-
title: z.string(),
98+
title: z.string().optional(),
9999
summary: z.string().optional(),
100100
layout: z.string().optional(),
101101
variant: z.string().optional(),
@@ -105,7 +105,7 @@ const researchSupport = defineCollection({
105105
const training = defineCollection({
106106
type: 'content',
107107
schema: z.object({
108-
title: z.string(),
108+
title: z.string().optional(),
109109
summary: z.string().optional(),
110110
date: z.string().optional(),
111111
layout: z.string().optional(),

0 commit comments

Comments
 (0)