William Park
← Writing

Hello world

This post exists so the writing collection, the RSS feed and the post template all have something to render. Delete it when there’s something real to say.

Frontmatter is validated by a zod schema in src/content.config.ts, so a typo in a date or a missing description fails the build rather than shipping quietly.

const writing = defineCollection({
  loader: glob({ base: './src/content/writing', pattern: '**/[^_]*.{md,mdx}' }),
  schema: z.object({
    title: z.string(),
    pubDate: z.coerce.date(),
    draft: z.boolean().default(false),
  }),
});

Set draft: true in any post’s frontmatter to keep it out of the build.