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,
|
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'],
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue