We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d91847 + a0c3e71 commit 2d7a1b8Copy full SHA for 2d7a1b8
src/components/featured-news.astro
@@ -10,7 +10,7 @@ const news = (await getCollection("news"))
10
{news.map((article) => {
11
return (
12
<li>
13
- <a href={`/news/${article.id}`}>
+ <a href={`/news/${article.id.replace(/\.mdx$/, "")}`}>
14
<span class="link block">{article.data.title}</span>
15
<time class="datetime block text-sm">{article.data.date}</time>
16
</a>
0 commit comments