aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-01 09:58:26 -0700
committerAdam Soltys <[email protected]>2022-11-01 09:58:26 -0700
commit87fb87e78faa9b0be2aeba34c5b4e62f3f9a296e (patch)
treeff3d6abe0c4ca14452bb28017ed0287988c3f0d9 /src/routes/+layout.svelte
parent743bbc9f065c0e5164226f629b5481a25dbc1216 (diff)
downloadcoinos-ui-87fb87e78faa9b0be2aeba34c5b4e62f3f9a296e.tar.gz
coinos-ui-87fb87e78faa9b0be2aeba34c5b4e62f3f9a296e.zip
metatags override
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 730557a7..6b62ff4a 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -15,6 +15,7 @@
export let data;
+ let { subject } = $page.data;
let r, u, token, rates;
$: update(data);
@@ -50,6 +51,21 @@
onDestroy(() => browser && clearTimeout(timer));
</script>
+<svelte:head>
+ {#if subject}
+ <title>coinos - {subject.username}</title>
+ <meta name="lightning" content={`lnurlp:${subject.username}@coinos.io`} />
+ {:else}
+ <title>coinos</title>
+ {/if}
+
+ {#if subject?.profile}
+ <meta name="og:image" content={`/api/public/${subject.username}-profile.webp`} />
+ {:else}
+ <meta property="og:image" content="/icons/logo.svg" />
+ {/if}
+</svelte:head>
+
<SvelteToast options={{ reversed: true, intro: { y: 192 } }} />
{#if lost}