summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/lib/components/Head.svelte
blob: 5ddd5436e45509274f0ecb64c0531eecc53946ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<script lang="ts">
	let { section, title = '' }: { section: string; title?: string } = $props();

	function formatTitle(section: string, title?: string) {
		return [title, section, 'hircine'].filter((i) => i).join(' · ');
	}
</script>

<svelte:head>
	<title>{formatTitle(section, title)}</title>
</svelte:head>