forked from ProjectSegfault/website
fuck git 2
This commit is contained in:
38
src/lib/Content.svelte
Normal file
38
src/lib/Content.svelte
Normal file
@@ -0,0 +1,38 @@
|
||||
<script lang="ts">
|
||||
export let title;
|
||||
export let description;
|
||||
export let separator;
|
||||
import SvelteSeo from "svelte-seo";
|
||||
import * as strings from "$lib/strings";
|
||||
// Enjoy the jank.
|
||||
if (title === "Project Segfault") {
|
||||
title = "";
|
||||
separator = "";
|
||||
} else {
|
||||
separator = "|";
|
||||
}
|
||||
</script>
|
||||
|
||||
<SvelteSeo
|
||||
openGraph={{
|
||||
title: title,
|
||||
description: description,
|
||||
type: "website",
|
||||
images: [
|
||||
{
|
||||
url: strings.SEO_BANNER_URL,
|
||||
width: 850,
|
||||
height: 650,
|
||||
alt: "Image"
|
||||
}
|
||||
]
|
||||
}}
|
||||
/>
|
||||
|
||||
<svelte:head>
|
||||
<title>{title} {separator} Project Segfault</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="mdsvex_content">
|
||||
<slot />
|
||||
</div>
|
||||
Reference in New Issue
Block a user