Ensure RSS feed generator uses post.id instead of slug for each link

This commit is contained in:
Maciej Pędzich 2025-01-01 00:53:05 +01:00
parent 9741b77e01
commit d218868f3a
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -13,7 +13,7 @@ export async function GET(context) {
site: context.site,
items: posts.map((post) => ({
...post.data,
link: `/blog/${post.slug}/`
link: `/blog/${post.id}/`
}))
});