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 7d5f18d commit ef255e6Copy full SHA for ef255e6
src/pages/rss.xml.ts
@@ -1,5 +1,6 @@
1
import rss from "@astrojs/rss";
2
import { getSortedPosts } from "@utils/content-utils";
3
+import { url } from "@utils/url-utils";
4
import type { APIContext } from "astro";
5
import MarkdownIt from "markdown-it";
6
import sanitizeHtml from "sanitize-html";
@@ -30,7 +31,7 @@ export async function GET(context: APIContext) {
30
31
title: post.data.title,
32
pubDate: post.data.published,
33
description: post.data.description || "",
- link: `/posts/${post.slug}/`,
34
+ link: url(`/posts/${post.slug}/`),
35
content: sanitizeHtml(parser.render(cleanedContent), {
36
allowedTags: sanitizeHtml.defaults.allowedTags.concat(["img"]),
37
}),
0 commit comments