mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2025-02-05 13:18:36 +01:00
Ensure RSS feed generator uses post.id instead of slug for each link
This commit is contained in:
parent
9741b77e01
commit
d218868f3a
@ -13,7 +13,7 @@ export async function GET(context) {
|
|||||||
site: context.site,
|
site: context.site,
|
||||||
items: posts.map((post) => ({
|
items: posts.map((post) => ({
|
||||||
...post.data,
|
...post.data,
|
||||||
link: `/blog/${post.slug}/`
|
link: `/blog/${post.id}/`
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user