mirror of
https://github.com/MaggieAppleton/digital-gardeners.git
synced 2025-09-24 01:03:39 +02:00
fixed slug paths
This commit is contained in:
parent
ee405f2f21
commit
4716d551bf
3 changed files with 7 additions and 7 deletions
|
@ -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 && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue