Add +error.svelte handler

This commit is contained in:
2026-03-10 23:59:25 +00:00
parent d7f6d957b7
commit 54ea6ebf59
2 changed files with 75 additions and 8 deletions

View File

@@ -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>