Move blog to use mdx
This commit is contained in:
parent
90d6d10292
commit
16458c6f59
9 changed files with 543 additions and 5 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue