~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
bf8a5247
—
pyrossh 1 year ago
Fix post active
src/lib/components/Header.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { page } from '$app/stores';
|
|
3
|
-
$: isActive = (href) => $page.url.pathname
|
|
3
|
+
$: isActive = (href) => $page.url.pathname.includes(href);
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
<header>
|