Skip to content

best way to save what you love

web/layout: add og:url & application name to head

wukko30bcad0ba489
diff --git a/web/src/app.html b/web/src/app.html
index a46da024..3ba5c5e9 100644
--- a/web/src/app.html
+++ b/web/src/app.html
@@ -3,11 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-height, initial-scale=1, maximum-scale=1">
-
- %sveltekit.head%
+ <meta name="application-name" content="cobalt">
<meta name="og:type" content="article">
<meta name="twitter:card" content="summary">
+ %sveltekit.head%
+
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="cobalt">
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
index 90da7833..daaaa830 100644
--- a/web/src/routes/+layout.svelte
+++ b/web/src/routes/+layout.svelte
@@ -42,6 +42,10 @@
<meta name="description" content={$t("general.embed.description")}>
<meta property="og:description" content={$t("general.embed.description")}>
+ {#if env.HOST}
+ <meta property="og:url" content="https://{env.HOST}/">
+ {/if}
+
{#if device.is.mobile}
<meta name="theme-color" content={statusBarColors[$currentTheme]} />
{/if}