diff --git a/src/routes/(marketing)/blog/(posts)/+layout.svelte b/src/routes/(marketing)/blog/(posts)/+layout.svelte index 7a490ef1..0b4d5658 100644 --- a/src/routes/(marketing)/blog/(posts)/+layout.svelte +++ b/src/routes/(marketing)/blog/(posts)/+layout.svelte @@ -3,7 +3,7 @@ import { postList } from "./../posts.json" let currentPost = null for (const post of postList) { - if ($page.url.pathname == post.link) { + if ($page.url.pathname.startsWith(post.link)) { currentPost = post continue }