aboutsummaryrefslogtreecommitdiff
path: root/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.astro')
-rw-r--r--src/pages/index.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro
index f1c2da9..943dc01 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -100,7 +100,7 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate
<h1>Latest Posts</h1>
{allBlogPosts.map((post) => (
<article>
- <h1 class="blog-title"><a href={`/blog/${post.slug}`}>{post.data.title}</a></h1>
+ <h1 class="blog-title"><a href={`/blog/${post.id}`}>{post.data.title}</a></h1>
<small>{formatDate(post.data.pubDate)}</small>
<p>{post.data.description}</p>
</article>