diff options
Diffstat (limited to 'website/src/pages/blog/rss.xml.ts')
| -rw-r--r-- | website/src/pages/blog/rss.xml.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/website/src/pages/blog/rss.xml.ts b/website/src/pages/blog/rss.xml.ts index b7c9bf3..ae81209 100644 --- a/website/src/pages/blog/rss.xml.ts +++ b/website/src/pages/blog/rss.xml.ts @@ -1,9 +1,12 @@ +import path from 'node:path'; import rss from '@astrojs/rss'; import type { APIContext } from 'astro'; import { getCollection } from 'astro:content'; import MarkdownIt from 'markdown-it'; -const mdParser = new MarkdownIt(); +const mdParser = new MarkdownIt({ + html: true +}); export async function GET(context: APIContext) { // `site` is guaranteed to exist because we define it in our Astro config @@ -17,7 +20,7 @@ export async function GET(context: APIContext) { <image>/images/headshot.webp</image> <language>en-GB</language> `, - site, + site: path.join(site.toString(), 'blog'), trailingSlash: false, items: posts.map((post) => ({ link: post.slug, |
