Skip to content

Commit 72d2312

Browse files
committed
💚 fix pathing
1 parent 29052be commit 72d2312

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: '20'
18+
cache: npm
1819
- name: Install
1920
run: npm ci
2021
- name: Lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "npx vitest run",
1212
"test:watch": "npx vitest watch",
1313
"lint": "npx prettier --check . && npx eslint .",
14-
"format": "npx prettier --write",
14+
"format": "npx prettier --write .",
1515
"prepare": "husky"
1616
},
1717
"devDependencies": {

src/lib/menu/HeaderMenu.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ If you wanted to display a header menu titled "My Application" with an anchor ca
2121
<script lang="ts">
2222
import { fly } from 'svelte/transition'
2323
import { Hamburger } from 'svelte-hamburgers'
24+
import { base } from '$app/paths'
2425
2526
export let title: string
2627
@@ -29,7 +30,7 @@ If you wanted to display a header menu titled "My Application" with an anchor ca
2930

3031
<header>
3132
<Hamburger --color="var(--font-color)" bind:open />
32-
<a href="/"><h1>{title}</h1></a>
33+
<a href="{base}/"><h1>{title}</h1></a>
3334
</header>
3435

3536
{#if open}

src/routes/+layout.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
import { Circle2 } from 'svelte-loading-spinners'
66
import { SpritePreference } from '$lib/menu/SpritePreference'
77
import SliderToggle from '$lib/menu/controls/SliderToggle.svelte'
8+
import { base } from '$app/paths'
89
910
export let data
1011
const { spritePreference, showNormal } = data
1112
</script>
1213

1314
<HeaderMenu title="Shiny Hunter">
1415
<ul>
15-
<li><span><a href="/">Trackers</a></span></li>
16-
<li><span><a href="/history">History</a></span></li>
17-
<li><span><a href="/about">About</a></span></li>
18-
<li><span><a href="/credits">Credits</a></span></li>
16+
<li><span><a href="{base}/">Trackers</a></span></li>
17+
<li><span><a href="{base}/history">History</a></span></li>
18+
<li><span><a href="{base}/about">About</a></span></li>
19+
<li><span><a href="{base}/credits">Credits</a></span></li>
1920
<li>
2021
<label for="sprite-preference">Sprite Preference</label>
2122
<select id="sprite-preference" bind:value={$spritePreference}>

0 commit comments

Comments
 (0)