Skip to content

Commit

Permalink
fix(website): fix fragile blog links (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored Nov 29, 2023
1 parent 5999c74 commit c3150e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/PostsList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const posts = (await getCollection("blog")).sort(
posts.map(async (post) => (
<article>
<h2>
<a href={`blog/${post.slug}`}>{post.data.title}</a>
<a href={`/blog/${post.slug}`}>{post.data.title}</a>
</h2>
<BlogPostInfo post={post.data} />
<Fragment set:html={post.data.summary} />
<p>
<a href={`blog/${post.slug}`}>Read more</a>
<a href={`/blog/${post.slug}`}>Read more</a>
</p>
</article>
))
Expand Down

0 comments on commit c3150e6

Please sign in to comment.