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