Skip to content

Commit 24881b8

Browse files
author
Sebastian Flick
committed
enhance nav bar
1 parent 806c2e6 commit 24881b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/+layout.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
const drawerStore = getDrawerStore();
2727
2828
$: classesActive = (/** @type {string} */ href) =>
29-
base + href === $page.url.pathname
29+
base + href === `/${$page.url.pathname.split('/')[1]}`
3030
? 'bg-primary-500 hover:text-primary-400 text-secondary-500'
3131
: 'hover:text-primary-500';
3232
@@ -69,7 +69,7 @@
6969
<svelte:fragment slot="header">
7070
<AppBar>
7171
<svelte:fragment slot="lead">
72-
<strong class="text-xl uppercase">Parzival</strong>
72+
<a class="text-xl uppercase font-bold" href="/">Parzival</a>
7373
</svelte:fragment>
7474
<nav class="flex-none items-center h-full hidden lg:flex">
7575
{#each pages as page}

0 commit comments

Comments
 (0)