mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
refactor!: update blog directory to src/data/blog
This commit is contained in:
@@ -3,7 +3,7 @@ import { glob } from "astro/loaders";
|
||||
import { SITE } from "@config";
|
||||
|
||||
const blog = defineCollection({
|
||||
loader: glob({ pattern: "**/*.md", base: "./src/content/blog" }),
|
||||
loader: glob({ pattern: "**/[^_]*.md", base: "./src/data/blog" }),
|
||||
schema: ({ image }) =>
|
||||
z.object({
|
||||
author: z.string().default(SITE.author),
|
||||
|
||||
Reference in New Issue
Block a user