add tags to rss feed

This commit is contained in:
2024-04-13 10:08:49 -04:00
parent e3e2a1cefc
commit c678bd0699
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ const title = Astro.props.title || Astro.props.frontmatter?.title || 'Unknown';
rel="alternate" rel="alternate"
type="application/rss+xml" type="application/rss+xml"
title="ghall.blog - RSS" title="ghall.blog - RSS"
href="/rss.xml" href={`${Astro.site}rss.xml`}
/> />
<title>{`ghall.blog - ${title}`}</title> <title>{`ghall.blog - ${title}`}</title>
</head> </head>
+1
View File
@@ -18,6 +18,7 @@ export async function get(context) {
title: post.data.title, title: post.data.title,
pubDate: post.data.pubDate, pubDate: post.data.pubDate,
link: `/posts/${post.slug}`, link: `/posts/${post.slug}`,
categories: post.data.tags,
content: sanitizeHtml(parser.render(post.body)), content: sanitizeHtml(parser.render(post.body)),
})), })),
}); });