Commit e6503d1

HPCesia <me@hpcesia.com>
2026-09-16 09:15:12
Ignore _prefixed paths when collecting posts
1 parent 6ec582b
Changed files (1)
src/content.config.ts
@@ -6,7 +6,7 @@ import { SITE_CONFIG } from "@/config.ts";
 
 const typCollection = defineCollection({
   loader: glob({
-    pattern: "**/[^_]*.{typ,typst}",
+    pattern: ["**/[^_]*.{typ,typst}", "!**/_*/**"],
     base: "./src/contents/posts",
   }),
   schema: z.object({