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

This commit is contained in:
wukko 2024-09-07 23:15:20 +06:00
parent 08c34762e9
commit 30bcad0ba4
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 7 additions and 2 deletions

View file

@ -3,11 +3,12 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-height, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-height, initial-scale=1, maximum-scale=1">
<meta name="application-name" content="cobalt">
%sveltekit.head%
<meta name="og:type" content="article"> <meta name="og:type" content="article">
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
%sveltekit.head%
<meta name="mobile-web-app-capable" content="yes"> <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-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="cobalt"> <meta name="apple-mobile-web-app-title" content="cobalt">

View file

@ -42,6 +42,10 @@
<meta name="description" content={$t("general.embed.description")}> <meta name="description" content={$t("general.embed.description")}>
<meta property="og: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} {#if device.is.mobile}
<meta name="theme-color" content={statusBarColors[$currentTheme]} /> <meta name="theme-color" content={statusBarColors[$currentTheme]} />
{/if} {/if}