diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte new file mode 100644 index 0000000..b9709f4 --- /dev/null +++ b/src/routes/+error.svelte @@ -0,0 +1,69 @@ + + +
+
+
+
+ +

Signal Failure: {page.status}

+ +

+ {page.error?.message ?? "An unexpected derailment occurred."} +

+ + {#if page.error?.owlCode} +
+ Ref: {page.error.owlCode} +
+ {/if} + + Return to Home +
+ + \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e24f375..6f27509 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -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; @@ -31,14 +29,14 @@
- {#if isHome} - OwlBoard Logo - {:else} + {#if page.data.title} OwlBoard Icon + {:else} + OwlBoard Logo {/if} - {#if !isHome} -

{page?.data?.title ?? ""}

+ {#if page.data.title} +

{page.data.title}

{/if}