add missing page titles
This commit is contained in:
parent
c98905e285
commit
b2d18b81a8
@ -53,8 +53,18 @@
|
|||||||
enabled: data.settingsRead
|
enabled: data.settingsRead
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
let pageTitleSuffix =
|
||||||
|
tabs.find((t) => $page.url.pathname === t.path)?.name ??
|
||||||
|
$page.url.pathname === `${env.PUBLIC_BASE_PATH}/admin/login`
|
||||||
|
? 'Login '
|
||||||
|
: null;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Craftattack Admin{pageTitleSuffix ? ` - ${pageTitleSuffix}` : ''}</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
{#if $page.url.pathname !== `${env.PUBLIC_BASE_PATH}/admin/login`}
|
{#if $page.url.pathname !== `${env.PUBLIC_BASE_PATH}/admin/login`}
|
||||||
<div class="h-12 relative bg-base-200 flex justify-center items-center">
|
<div class="h-12 relative bg-base-200 flex justify-center items-center">
|
||||||
<ul class="menu menu-horizontal h-10 p-0 flex items-center bg-base-300 rounded-lg">
|
<ul class="menu menu-horizontal h-10 p-0 flex items-center bg-base-300 rounded-lg">
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
<title>Report</title>
|
||||||
<!-- just in case... -->
|
<!-- just in case... -->
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user