Migrate to astro v5 beta: first round

This commit is contained in:
prototypa
2024-10-04 03:34:51 -04:00
parent 52188af681
commit 953c4f2408
13 changed files with 382 additions and 1179 deletions

View File

@@ -1,4 +1,5 @@
import { z, defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
const metadataDefinition = () =>
z
@@ -46,6 +47,7 @@ const metadataDefinition = () =>
.optional();
const postCollection = defineCollection({
loader: glob({ pattern: ['*.md', '*.mdx'], base: 'src/data/post' }),
schema: z.object({
publishDate: z.date().optional(),
updateDate: z.date().optional(),