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
+4 -1
View File
@@ -15,7 +15,10 @@ export const load: PageServerLoad = async ({ parent }) => {
return {
user: user,
sharedAlbums: sharedAlbums
sharedAlbums,
meta: {
title: 'Albums'
}
};
} catch (e) {
throw redirect(302, '/auth/login');
-4
View File
@@ -33,10 +33,6 @@
};
</script>
<svelte:head>
<title>Albums - Immich</title>
</svelte:head>
<section>
<NavigationBar user={data.user} shouldShowUploadButton={false} />
</section>
@@ -10,7 +10,10 @@ export const load: PageServerLoad = async ({ parent }) => {
}
return {
user
user,
meta: {
title: 'Shared Links'
}
};
} catch (e) {
throw redirect(302, '/auth/login');
@@ -67,10 +67,6 @@
};
</script>
<svelte:head>
<title>Shared links - Immich</title>
</svelte:head>
<ControlAppBar backIcon={ArrowLeft} on:close-button-click={() => goto('/sharing')}>
<svelte:fragment slot="leading">Shared links</svelte:fragment>
</ControlAppBar>