<script lang="ts">
	export let route: string | undefined = undefined;
	export let path: string | undefined = undefined;

	const title = (route ? `${route} • ` : '') + 'due.moe';
</script>

<svelte:head>
	<!-- Facebook -->
	<meta property="og:url" content={`https://due.moe${path}`} />
	<meta property="og:title" content={title} />

	<!-- Twitter -->
	<meta property="twitter:url" content={`https://due.moe${path}`} />
	<meta name="twitter:title" content={title} />

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