🐐
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
<script lang="ts">
|
||||
import '../app.css';
|
||||
import Header from "$lib/header.svelte";
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
import { page } from '$app/state';
|
||||
import '../app.css';
|
||||
import Header from "$lib/header.svelte";
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { children } = $props();
|
||||
let { children } = $props();
|
||||
|
||||
const showHeader = $derived(!['auth', 'forgot-password'].some(p => page.url.pathname.startsWith(`/${p}`)));
|
||||
const showHeader = $derived(
|
||||
!['auth', 'forgot-password'].some(p => page.url.pathname.startsWith(`/${p}`)) &&
|
||||
!/^\/decks\/.+/.test(page.url.pathname)
|
||||
);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>WikiTCG</title>
|
||||
<link rel="icon" href={favicon} />
|
||||
<title>WikiTCG</title>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
<div class="layout">
|
||||
|
||||
Reference in New Issue
Block a user