@@ -14,7 +14,7 @@ const localized = <T extends z.ZodTypeAny>(schema: T) =>
14
14
) ;
15
15
16
16
const blogCollection = defineCollection ( {
17
- loader : glob ( { pattern : "**/[^_]*.mdx" , base : "./src/content/blog" } ) ,
17
+ loader : glob ( { pattern : "**/[^_]*.{md, mdx} " , base : "./src/content/blog" , generateId : ( { entry } ) => entry } ) ,
18
18
schema : ( { image } ) =>
19
19
z . object ( {
20
20
title : z . string ( ) ,
@@ -30,7 +30,7 @@ const blogCollection = defineCollection({
30
30
} ) ,
31
31
} ) ;
32
32
const notesCollection = defineCollection ( {
33
- loader : glob ( { pattern : "**/[^_]*.mdx" , base : "./src/content/notes" } ) ,
33
+ loader : glob ( { pattern : "**/[^_]*.{md, mdx} " , base : "./src/content/notes" , generateId : ( { entry } ) => entry } ) ,
34
34
schema : z . object ( {
35
35
title : z . string ( ) ,
36
36
} ) ,
@@ -51,7 +51,7 @@ const galleryCollection = defineCollection({
51
51
} ) ,
52
52
} ) ;
53
53
const projectsCollection = defineCollection ( {
54
- loader : glob ( { pattern : "**/[^_]*.mdx" , base : "./src/content/projects" } ) ,
54
+ loader : glob ( { pattern : "**/[^_]*.{md, mdx} " , base : "./src/content/projects" } ) ,
55
55
schema : ( { image } ) =>
56
56
z . object ( {
57
57
title : z . string ( ) ,
@@ -69,7 +69,7 @@ const projectsCollection = defineCollection({
69
69
} ) ,
70
70
} ) ;
71
71
const pagesCollection = defineCollection ( {
72
- loader : glob ( { pattern : "**/[^_]*.mdx" , base : "./src/content/pages" } ) ,
72
+ loader : glob ( { pattern : "**/[^_]*.{md, mdx} " , base : "./src/content/pages" } ) ,
73
73
schema : z . object ( {
74
74
path : z . string ( ) ,
75
75
title : z . string ( ) ,
@@ -89,7 +89,7 @@ const navigationCollection = defineCollection({
89
89
) ,
90
90
} ) ;
91
91
const sectionsCollection = defineCollection ( {
92
- loader : glob ( { pattern : "**/[^_]*.mdx" , base : "./src/content/sections" } ) ,
92
+ loader : glob ( { pattern : "**/[^_]*.{md, mdx} " , base : "./src/content/sections" } ) ,
93
93
schema : z . object ( { } ) ,
94
94
} )
95
95
0 commit comments