aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Home/HeadTitle.svelte
blob: 0759943f21440b64bc35ec76376ade40e495b8b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script lang="ts">
import { siteUrl } from "$lib/Utility/appOrigin";

let { route = undefined, path = "/" }: { route?: string; path?: string } =
	$props();
const title = $derived((route ? `${route} • ` : "") + "due.moe");
</script>

<svelte:head>
  <!-- Facebook -->
  <meta name="og:url" property="og:url" content={siteUrl(path)} />
  <meta name="og:title" property="og:title" content={title} />

  <!-- Twitter -->
  <meta name="twitter:url" property="twitter:url" content={siteUrl(path)} />
  <meta name="twitter:title" property="twitter:title" content={title} />

  <title>{title}</title>
</svelte:head>