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

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

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