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"
|
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>
|
||||||
|
|||||||
@@ -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)),
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user