mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Use SvelteKit render function for templating and add error page
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
const { data, children } = $props<{ data: LayoutServerData; children: Snippet }>();
|
||||
|
||||
const isProjectRoute = $derived($page.url.pathname.startsWith("/website"));
|
||||
const isProjectRoute = $derived($page.url.pathname.startsWith("/website") && !$page.error);
|
||||
const routeName = $derived(
|
||||
$page.url.pathname === "/"
|
||||
? "Dashboard"
|
||||
@@ -39,7 +39,7 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
{#if !isProjectRoute}
|
||||
{#if !isProjectRoute && !$page.error}
|
||||
<header>
|
||||
<h1>{routeName}</h1>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user