Skip to content

Commit

Permalink
fix(website): fix fragile blog links (biomejs#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored and yossydev committed Dec 3, 2023
1 parent 7aec1bf commit 0aa1527
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 0aa1527

Please sign in to comment.