Move posts out of src
This commit is contained in:
1 parent
1d5278e6a2
commit
8230e397ba
7 files changed
+6
-6
No files matched your search
@@ -3,7 +3,7 @@ import { defineCollection, z } from "astro:content";
|
||||
import { glob } from "astro/loaders";
|
||||
|
||||
const posts = defineCollection({
|
||||
loader: glob({ pattern: "*.md", base: "./src/posts" }),
|
||||
loader: glob({ pattern: "*.md", base: "./posts" }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
|
||||
Reference in new issue
Block a user