webcompile/src/lib/MDsvexLayout.svelte

38 lines
666 B
Svelte
Raw Normal View History

2022-07-03 01:23:41 +05:30
<script lang="ts">
export let title;
export let description;
2022-07-06 18:40:25 +05:30
export let separator;
import SvelteSeo from "svelte-seo";
// Enjoy the jank.
if (title === "Project Segfault") {
title = "";
separator = "";
} else {
separator = "|";
}
2022-07-03 01:23:41 +05:30
</script>
<SvelteSeo
2022-07-06 18:40:25 +05:30
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"
}
]
}}
2022-07-03 01:23:41 +05:30
/>
<svelte:head>
<title>{title} {separator} Project Segfault</title>
</svelte:head>
<div class="mdsvex_content">
<slot />
2022-07-06 18:40:25 +05:30
</div>