~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
21d70ce5
—
pyrossh 1 year ago
fix base
src/lib/components/Header.svelte
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { base } from '$app/paths';
|
|
2
3
|
import SocialLinks from './SocialLinks.svelte';
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
6
|
<header>
|
|
6
7
|
<nav class="spy-2 m:py-0 flex w-full flex-1 flex-row justify-center bg-black font-mono">
|
|
7
8
|
<div class="flex flex-row flex-1 items-center p-3 max-w-5xl">
|
|
8
|
-
<a class="flex text-#f1fa8c pr-4 hover:no-underline ml-0 pl-0" href="/">
|
|
9
|
+
<a class="flex text-#f1fa8c pr-4 hover:no-underline ml-0 pl-0" href="{base}/">
|
|
9
10
|
<span class="mr-1 font-logo font-bold">木</span> pyros.sh
|
|
10
11
|
</a>
|
|
11
12
|
<div
|
|
12
13
|
class="flex flex-row flex-1 items-center text-white sm:[&>a]:mx-1 [&>a]:px-2 [&>a:hover]:bg-gray-600 data-current:child:bg-gray-600"
|
|
13
14
|
>
|
|
14
15
|
<div>|</div>
|
|
15
|
-
<a href="/cv" rel="prefetch"> cv </a>
|
|
16
|
+
<a href="{base}/cv" rel="prefetch"> cv </a>
|
|
16
17
|
<div>|</div>
|
|
17
|
-
<a href="/posts" rel="prefetch"> posts </a>
|
|
18
|
+
<a href="{base}/posts" rel="prefetch"> posts </a>
|
|
18
19
|
</div>
|
|
19
20
|
<div class="hidden sm:flex">
|
|
20
21
|
<SocialLinks />
|
src/routes/+error.svelte
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { base } from '$app/paths';
|
|
2
3
|
import { page } from '$app/stores';
|
|
3
4
|
</script>
|
|
4
5
|
|
|
@@ -24,6 +25,6 @@
|
|
|
24
25
|
Something went wrong. Please try again later.
|
|
25
26
|
{/if}
|
|
26
27
|
</p>
|
|
27
|
-
<a href="/" class="underline mt-4"> Go back home </a>
|
|
28
|
+
<a href="{base}/" class="underline mt-4"> Go back home </a>
|
|
28
29
|
</div>
|
|
29
30
|
</div>
|