Skip to content

Commit

Permalink
web/layout: add og:url & application name to head
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Sep 7, 2024
1 parent 08c3476 commit 30bcad0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
4 changes: 4 additions & 0 deletions web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 30bcad0

Please sign in to comment.