diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 755db70..b94a62a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -31,7 +31,7 @@ const title = Astro.props.title || Astro.props.frontmatter?.title || 'Unknown'; rel="alternate" type="application/rss+xml" title="ghall.blog - RSS" - href="/rss.xml" + href={`${Astro.site}rss.xml`} /> {`ghall.blog - ${title}`} diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index e860926..88c8a36 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -18,6 +18,7 @@ export async function get(context) { title: post.data.title, pubDate: post.data.pubDate, link: `/posts/${post.slug}`, + categories: post.data.tags, content: sanitizeHtml(parser.render(post.body)), })), });