feat: add article categories to RSS

Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
Filipe Medeiros 2022-12-25 12:39:08 +00:00
parent af92c1f19a
commit 95bea24ec1
Signed by: filipe
GPG key ID: 9533BD5467CC1E78

View file

@ -56,6 +56,9 @@ export default async function generateRssFeed() {
description: richTextAsPlainText(
blogPost.properties.Description.rich_text,
),
category: blogPost.properties.Topics.multi_select.map(({ name }) => ({
name,
})),
contributor: [author],
content: html,
date: new Date(