Skip to content

Commit 1527736

Browse files
fix: update blog post links to use slugs instead of IDs for improved routing
1 parent a1ce36e commit 1527736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/blog/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const posts = (await getCollection('blog')).sort(
9393
{
9494
posts.map((post) => (
9595
<li>
96-
<a href={`/cookbook/blog/${post.id}/`}>
96+
<a href={`/cookbook/blog/${post.slug}`}>
9797
<img width={720} height={360} src={post.data.heroImage} alt="" />
9898
<h4 class="title">{post.data.title}</h4>
9999
<p class="date">

0 commit comments

Comments
 (0)