diff --git a/src/components/BlogPostFooter.astro b/src/components/BlogPostFooter.astro index fee67238..34502c4c 100644 --- a/src/components/BlogPostFooter.astro +++ b/src/components/BlogPostFooter.astro @@ -14,7 +14,7 @@ const orderedPosts = posts.sort((a, b) => { }) orderedPosts.forEach((post, index) => { - if (post.slug === activeSlug) { + if (post.id === activeSlug) { if (posts[index - 1]) { prev = posts[index - 1] } @@ -32,7 +32,7 @@ orderedPosts.forEach((post, index) => { { prev && ( { { next && ( { postContent += ensureAbsoluteUrls(marked.parse(post.body)) return { - link: `${blogUrl}/${post.slug}`, + link: `${blogUrl}/${post.id}`, title: post.data.title, description: post.data.summary, categories: post.data.categories,