feat(web): meta tags for share links (#1290)

* feat(web): meta tags for share links

* refactor: svelte head tags

* chore: clean up

* chore: linting
This commit is contained in:
Jason Rasmussen
2023-01-10 22:36:50 -05:00
committed by GitHub
parent a3688fe642
commit fa31a6e441
34 changed files with 120 additions and 84 deletions

View File

@@ -13,5 +13,10 @@ export const load: PageServerLoad = async ({ parent }) => {
const { data: allUsers } = await serverApi.userApi.getAllUsers(false);
return { allUsers };
return {
allUsers,
meta: {
title: 'Server Status'
}
};
};

View File

@@ -3,10 +3,6 @@
import { page } from '$app/stores';
</script>
<svelte:head>
<title>Server Status - Immich</title>
</svelte:head>
{#if $page.data.allUsers}
<ServerStatsPanel allUsers={$page.data.allUsers} />
{/if}