Skip to content

Commit 29727df

Browse files
authored
fix issues
1 parent d603f48 commit 29727df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}),

src/pages/rss.xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)