Tidy dynamic title handling
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
]
|
||||
|
||||
const activePath = $derived(page.url?.pathname ?? '');
|
||||
const isHome = $derived(page.url?.pathname ?? '' === '/');
|
||||
const isHome = $derived(page.url.pathname === '/');
|
||||
|
||||
|
||||
const moreIcon = IconDots;
|
||||
@@ -36,7 +36,7 @@
|
||||
{/if}
|
||||
</a>
|
||||
{#if !isHome}
|
||||
<h1 class="page-title">{headerState?.title ?? ""}</h1>
|
||||
<h1 class="page-title">{page?.data?.title ?? ""}</h1>
|
||||
{/if}
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user