fixes to RSS
This commit is contained in:
parent
9aed8605b2
commit
e80b7161dd
|
@ -20,7 +20,10 @@ export async function GET(context) {
|
|||
title: item.data.title,
|
||||
pubDate: item.data.date,
|
||||
description: item.data.description,
|
||||
itemLink: item.data.link,
|
||||
author: 'hello@filipesm.eu',
|
||||
categories: item.id.startsWith('en')
|
||||
? ['library', 'English']
|
||||
: ['biblioteca', 'português'],
|
||||
}))
|
||||
.concat(
|
||||
blogPosts.map((post) => ({
|
||||
|
@ -30,6 +33,10 @@ export async function GET(context) {
|
|||
link: `${post.id.startsWith('en/') ? '/blog' : '/blogue'}/${
|
||||
post.slug
|
||||
}`,
|
||||
author: 'hello@filipesm.eu',
|
||||
categories: post.id.startsWith('en')
|
||||
? ['blog', 'English']
|
||||
: ['blogue', 'português'],
|
||||
})),
|
||||
),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue