fixed slug paths

This commit is contained in:
Maggie Appleton 2021-09-06 15:41:00 +01:00
parent ee405f2f21
commit 4716d551bf
3 changed files with 7 additions and 7 deletions

View file

@ -17,8 +17,8 @@ export default function Card({ post }) {
}}
>
<Link
as={`/posts/${post.filePath.replace(/\.mdx?$/, "")}`}
href={`/posts/[slug]`}
as={`${post.filePath.replace(/\.mdx?$/, "")}`}
href={`[slug]`}
>
<a>
{post.data.image && (