mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-04 06:06:07 +00:00
web/layout: add description and title metadata
This commit is contained in:
parent
b4f17487b4
commit
c6385f1842
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"cobalt": "cobalt",
|
"cobalt": "cobalt",
|
||||||
"meowbalt": "meowbalt",
|
"meowbalt": "meowbalt",
|
||||||
"beta": "beta"
|
"beta": "beta",
|
||||||
|
|
||||||
|
"embed.description": "save what you love without ads, tracking, paywalls or other nonsense. cobalt is a truly open web app, built with love and care by imput."
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
import settings from "$lib/state/settings";
|
import settings from "$lib/state/settings";
|
||||||
import locale from "$lib/i18n/locale";
|
import locale from "$lib/i18n/locale";
|
||||||
|
|
||||||
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
import { device, app } from "$lib/device";
|
import { device, app } from "$lib/device";
|
||||||
import { turnstileCreated } from "$lib/state/turnstile";
|
import { turnstileCreated } from "$lib/state/turnstile";
|
||||||
import currentTheme, { statusBarColors } from "$lib/state/theme";
|
import currentTheme, { statusBarColors } from "$lib/state/theme";
|
||||||
|
@ -36,6 +38,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
<meta name="description" content={$t("general.embed.description")}>
|
||||||
|
<meta property="og:title" content={$t("general.cobalt")}>
|
||||||
|
|
||||||
{#if device.is.mobile}
|
{#if device.is.mobile}
|
||||||
<meta name="theme-color" content={statusBarColors[$currentTheme]} />
|
<meta name="theme-color" content={statusBarColors[$currentTheme]} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue