~repos /website

#astro#js#html#css

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
Files changed (1) hide show
  1. src/lib/components/Header.svelte +1 -1
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 === href;
3
+ $: isActive = (href) => $page.url.pathname.includes(href);
4
4
  </script>
5
5
 
6
6
  <header>