Move blog to use mdx

This commit is contained in:
Aria 2025-03-10 12:37:37 +11:00
parent 90d6d10292
commit 16458c6f59
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
9 changed files with 543 additions and 5 deletions

View file

@ -4,7 +4,7 @@ import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders";
// Define a `loader` and `schema` for each collection
const blog = defineCollection({
loader: glob({ pattern: "**/[^_]*.md", base: "./src/blog" }),
loader: glob({ pattern: "**/[^_]*.{md,mdx}", base: "./src/blog" }),
schema: z.object({
title: z.string(),
pubDate: z.date(),