1- import { defineCollection , z } from " astro:content" ;
2- import { glob } from " astro/loaders" ;
1+ import { defineCollection , z } from ' astro:content' ;
2+ import { glob } from ' astro/loaders' ;
33
44const blog = defineCollection ( {
5- loader : glob ( { pattern : " **/*.md" , base : " ./src/content/blog" } ) ,
5+ loader : glob ( { pattern : ' **/*.md' , base : ' ./src/content/blog' } ) ,
66 schema : z . object ( {
77 draft : z . boolean ( ) ,
88 title : z . string ( ) ,
@@ -12,14 +12,14 @@ const blog = defineCollection({
1212 alt : z . string ( ) ,
1313 } ) ,
1414 publishDate : z . coerce . date ( ) ,
15- author : z . string ( ) . default ( " YapBay" ) ,
15+ author : z . string ( ) . default ( ' YapBay' ) ,
1616 category : z . string ( ) ,
1717 tags : z . array ( z . string ( ) ) ,
1818 } ) ,
1919} ) ;
2020
2121const team = defineCollection ( {
22- loader : glob ( { pattern : " **/*.json" , base : " ./src/content/team" } ) ,
22+ loader : glob ( { pattern : ' **/*.json' , base : ' ./src/content/team' } ) ,
2323 schema : z . object ( {
2424 name : z . string ( ) ,
2525 title : z . string ( ) ,
@@ -34,7 +34,7 @@ const team = defineCollection({
3434} ) ;
3535
3636const gallery = defineCollection ( {
37- loader : glob ( { pattern : " **/*.json" , base : " ./src/content/gallery" } ) ,
37+ loader : glob ( { pattern : ' **/*.json' , base : ' ./src/content/gallery' } ) ,
3838 schema : z . object ( {
3939 title : z . string ( ) ,
4040 description : z . string ( ) ,
@@ -46,4 +46,4 @@ const gallery = defineCollection({
4646 } ) ,
4747} ) ;
4848
49- export const collections = { blog, team, gallery } ;
49+ export const collections = { blog, team, gallery } ;
0 commit comments