add: wikibonsai changes.

This commit is contained in:
manunamz
2023-10-03 10:58:17 -04:00
parent 8e2152a560
commit f87f774b2a
26 changed files with 4811 additions and 54 deletions
+18 -1
View File
@@ -12,4 +12,21 @@ const blog = defineCollection({
}),
});
export const collections = { blog };
const entries = defineCollection({
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
// Transform string to Date object
pubDate: z.coerce.date().optional(),
updatedDate: z.coerce.date().optional(),
}),
});
const index = defineCollection({
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
}),
});
export const collections = { blog, entries, index };