add tags to rss feed
This commit is contained in:
@@ -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`}
|
||||
/>
|
||||
<title>{`ghall.blog - ${title}`}</title>
|
||||
</head>
|
||||
|
||||
@@ -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)),
|
||||
})),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user