chore: finished migration
This commit is contained in:
parent
0e58e8c7e2
commit
97acbbd226
16 changed files with 80 additions and 59 deletions
25
src/lib/components/SEO.svelte
Normal file
25
src/lib/components/SEO.svelte
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
|
||||
export let title = "Alex Daichendt's website";
|
||||
export let keywords: string[] = [];
|
||||
export let description: string;
|
||||
let seo = $page.data?.seo;
|
||||
|
||||
if (seo) {
|
||||
title = seo.title ? `${seo.title} - Alex Daichendt` : "Alex Daichendt's website";
|
||||
description = seo.description;
|
||||
keywords = seo.keywords;
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:head
|
||||
><title>{title}</title>
|
||||
{#if description}
|
||||
<meta name="description" content={description} />
|
||||
{/if}
|
||||
<meta name="author" content="Alexander Daichendt" />
|
||||
{#if keywords}
|
||||
<meta name="keywords" content={keywords.join(',')} />
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
|
@ -12,6 +12,12 @@
|
|||
import Icon from 'mdi-svelte';
|
||||
import Divider from '$components/Divider.svelte';
|
||||
import '$lib/utils/one-dark.css';
|
||||
import SEO from '$components/SEO.svelte';
|
||||
|
||||
// svelte-ignore unused-export-let
|
||||
export let data;
|
||||
// svelte-ignore unused-export-let
|
||||
export let errors;
|
||||
|
||||
export let title;
|
||||
// svelte-ignore unused-export-let
|
||||
|
|
@ -24,6 +30,8 @@
|
|||
export let hidden = false;
|
||||
</script>
|
||||
|
||||
<SEO {title} {description} {keywords} />
|
||||
|
||||
<h1>{title}</h1>
|
||||
<aside role="note">
|
||||
{#if updated}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue