Signed-off-by: Alex J <odyssey346@disroot.org>
This commit is contained in:
Alex J
2022-06-17 21:13:45 +02:00
parent 701df6a56e
commit dc41d4b47c
4 changed files with 69 additions and 7 deletions

38
src/lib/content.svelte Normal file
View File

@@ -0,0 +1,38 @@
<script lang="ts">
export let title;
export let description;
export let separator;
import SvelteSeo from 'svelte-seo';
// Enjoy the jank.
if(title === "Project Segfault") {
title = "";
separator = "";
}
else {
separator = "|";
}
</script>
<SvelteSeo
openGraph={{
title: title,
description: description,
type: 'website',
images: [
{
url: 'https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/HBgjhWUExhKPzbpkpIqQfUkF',
width: 850,
height: 650,
alt: 'Image'
}
]
}}
/>
<svelte:head>
<title>{title} {separator} Project Segfault</title>
</svelte:head>
<div class="mdsvex_content">
<slot />
</div>