We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806c2e6 commit 24881b8Copy full SHA for 24881b8
src/routes/+layout.svelte
@@ -26,7 +26,7 @@
26
const drawerStore = getDrawerStore();
27
28
$: classesActive = (/** @type {string} */ href) =>
29
- base + href === $page.url.pathname
+ base + href === `/${$page.url.pathname.split('/')[1]}`
30
? 'bg-primary-500 hover:text-primary-400 text-secondary-500'
31
: 'hover:text-primary-500';
32
@@ -69,7 +69,7 @@
69
<svelte:fragment slot="header">
70
<AppBar>
71
<svelte:fragment slot="lead">
72
- <strong class="text-xl uppercase">Parzival</strong>
+ <a class="text-xl uppercase font-bold" href="/">Parzival</a>
73
</svelte:fragment>
74
<nav class="flex-none items-center h-full hidden lg:flex">
75
{#each pages as page}
0 commit comments