We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e832d89 commit 4622c60Copy full SHA for 4622c60
src/pages/rss.xml.js
@@ -1,6 +1,7 @@
1
import { getCollection } from "astro:content";
2
import rss from "@astrojs/rss";
3
import { SITE_DESCRIPTION, SITE_TITLE } from "../consts";
4
+import { getBlogPostUrl } from "../utils/blog";
5
6
export async function GET(context) {
7
const posts = await getCollection("blog");
@@ -10,7 +11,7 @@ export async function GET(context) {
10
11
site: context.site,
12
items: posts.map((post) => ({
13
...post.data,
- link: `/blog/${post.id}/`,
14
+ link: getBlogPostUrl(post),
15
})),
16
});
17
}
0 commit comments