Skip to content

Commit fb13d70

Browse files
committed
Fix homepage blog links using post.id instead of post.slug
1 parent 6cd3f22 commit fb13d70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const posts = (await getCollection('blog', ({ data }) => !data.draft))
2626
description={post.data.description}
2727
date={post.data.date}
2828
tags={post.data.tags}
29-
slug={post.slug}
29+
slug={post.id}
3030
readingTime={getReadingTime(post.body ?? '')}
3131
/>
3232
))}

0 commit comments

Comments
 (0)