File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const blog = defineCollection({
55 schema : z . object ( {
66 title : z . string ( ) ,
77 description : z . string ( ) ,
8- pubpubDate : z . coerce . date ( ) ,
8+ pubDate : z . coerce . date ( ) ,
99 updatedpubDate : z . coerce . date ( ) . optional ( ) ,
1010 coverImageCredit : z . string ( ) . optional ( ) ,
1111 } ) ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export async function GET(context) {
1616 // See "Generating items" section for examples using content collections and glob imports
1717 items : blog . map ( ( post ) => ( {
1818 title : post . data . title ,
19- pubpubDate : post . data . pubDate ,
19+ pubDate : post . data . pubDate ,
2020 description : post . data . description ,
2121 // Compute RSS link from post `id`
2222 // This example assumes all posts are rendered as `/blog/[id]` routes
You can’t perform that action at this time.
0 commit comments