fixes to RSS

This commit is contained in:
Filipe Medeiros 2024-03-30 19:30:23 +01:00
parent 9aed8605b2
commit e80b7161dd
Signed by: filipe
GPG key ID: 9533BD5467CC1E78

View file

@ -20,7 +20,10 @@ export async function GET(context) {
title: item.data.title, title: item.data.title,
pubDate: item.data.date, pubDate: item.data.date,
description: item.data.description, description: item.data.description,
itemLink: item.data.link, author: 'hello@filipesm.eu',
categories: item.id.startsWith('en')
? ['library', 'English']
: ['biblioteca', 'português'],
})) }))
.concat( .concat(
blogPosts.map((post) => ({ blogPosts.map((post) => ({
@ -30,6 +33,10 @@ export async function GET(context) {
link: `${post.id.startsWith('en/') ? '/blog' : '/blogue'}/${ link: `${post.id.startsWith('en/') ? '/blog' : '/blogue'}/${
post.slug post.slug
}`, }`,
author: 'hello@filipesm.eu',
categories: post.id.startsWith('en')
? ['blog', 'English']
: ['blogue', 'português'],
})), })),
), ),
}); });