Skip to content

Commit 2eae039

Browse files
authored
Use dc:creator instead of email-less author (#30)
1 parent cf6c33f commit 2eae039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/rss.xml.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ export async function GET(context: APIContext) {
1616
title: "Python Insider",
1717
description: "The official blog of the Python core development team.",
1818
site: context.site!.toString(),
19+
xmlns: { dc: "http://purl.org/dc/elements/1.1/" },
1920
items: posts.map((post) => ({
2021
title: post.data.title,
2122
pubDate: post.data.publishDate,
2223
description: post.data.description ?? "",
2324
link: withBase(`${postUrl(post.id, post.data.publishDate)}/`),
24-
author: post.data.author,
25+
customData: `<dc:creator>${post.data.author}</dc:creator>`,
2526
categories: post.data.tags,
2627
})),
2728
});

0 commit comments

Comments
 (0)