Add +error.svelte handler
This commit is contained in:
@@ -18,9 +18,7 @@
|
||||
{ label: 'About', path: '/about', icon: IconHelp},
|
||||
]
|
||||
|
||||
const activePath = $derived(page.url?.pathname ?? '');
|
||||
const isHome = $derived(page.url.pathname === '/');
|
||||
|
||||
const activePath = $derived(page.url?.pathname ?? '');
|
||||
|
||||
const moreIcon = IconDots;
|
||||
</script>
|
||||
@@ -31,14 +29,14 @@
|
||||
|
||||
<header>
|
||||
<a href="/" aria-label="OwlBoard Home" class="logo-link">
|
||||
{#if isHome}
|
||||
<img src={logoText} alt="OwlBoard Logo" height="55" />
|
||||
{:else}
|
||||
{#if page.data.title}
|
||||
<img src={logoPlain} alt="OwlBoard Icon" height="55" />
|
||||
{:else}
|
||||
<img src={logoText} alt="OwlBoard Logo" height="55" />
|
||||
{/if}
|
||||
</a>
|
||||
{#if !isHome}
|
||||
<h1 class="page-title">{page?.data?.title ?? ""}</h1>
|
||||
{#if page.data.title}
|
||||
<h1 class="page-title">{page.data.title}</h1>
|
||||
{/if}
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user