Skip to content

Commit

Permalink
Fix bug in blog caused by upgrading SvelteKit.
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Jan 17, 2024
1 parent 3cf0ba6 commit 8ec0dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(marketing)/blog/(posts)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8ec0dd8

Please sign in to comment.