Skip to content

Commit

Permalink
fix: fix demo double /path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Jun 18, 2024
1 parent 1bba531 commit 364e51c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/comp/Contents.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script context="module" lang="ts">
export interface Page {
title: string;
path: `/${string}`;
path: string;
}
export interface Section {
Expand All @@ -11,7 +11,6 @@
</script>

<script lang="ts">
import { base } from '$app/paths';
import { page } from '$app/stores';
import { pathIsCurrent } from './pathUtils';
Expand All @@ -34,7 +33,7 @@
data-sveltekit-preload-data
class="page"
aria-current={pathIsCurrent(path, $page) ? 'page' : undefined}
href={base + path}
href={path}
>
{title}
</a>
Expand Down

0 comments on commit 364e51c

Please sign in to comment.