refactor!: update blog directory to src/data/blog

This commit is contained in:
satnaing
2025-02-25 19:33:31 +07:00
committed by Sat Naing
parent cc936ca5e4
commit 594addaec1
20 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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),