File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11// 1. Import utilities from `astro:content`
22import { z , defineCollection } from "astro:content" ;
3- import { glob } from ' astro/loaders' ;
3+ import { glob } from " astro/loaders" ;
44
55// 2. Define your collection(s)
66const testimonialCollection = defineCollection ( {
7- loader : glob ( { pattern : '**\/ [^_]*.md' , base : "./src/content/testimonials" } ) ,
7+ loader : glob ( { pattern : " [^_]*.md" , base : "./src/content/testimonials" } ) ,
88 schema : ( { image } ) =>
99 z . object ( {
1010 title : z . string ( ) ,
@@ -16,7 +16,7 @@ const testimonialCollection = defineCollection({
1616} ) ;
1717
1818const sessionCollection = defineCollection ( {
19- loader : glob ( { pattern : '**\ /[^_]*.md' , base : "./src/content/sessions" } ) ,
19+ loader : glob ( { pattern : "** /[^_]*.md" , base : "./src/content/sessions" } ) ,
2020 schema : ( { image } ) => {
2121 return z . object ( {
2222 title : z . string ( ) ,
@@ -36,7 +36,7 @@ const sessionCollection = defineCollection({
3636} ) ;
3737
3838const blogCollection = defineCollection ( {
39- loader : glob ( { pattern : '**\ /[^_]*.md' , base : "./src/content/blog" } ) ,
39+ loader : glob ( { pattern : "** /[^_]*.md" , base : "./src/content/blog" } ) ,
4040 schema : ( { image } ) => {
4141 return z . object ( {
4242 title : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments