2024-08-20 19:17:05 +02:00
|
|
|
<script lang="ts">
|
2024-09-10 17:29:57 +02:00
|
|
|
import type { WebsiteOverview } from "../../utils";
|
|
|
|
|
|
2024-08-25 16:31:12 +02:00
|
|
|
const {
|
2024-09-10 17:29:57 +02:00
|
|
|
websiteOverview,
|
|
|
|
|
nestingLevel,
|
|
|
|
|
apiUrl,
|
2024-08-25 16:31:12 +02:00
|
|
|
title,
|
2024-09-10 17:29:57 +02:00
|
|
|
metaDescription
|
2024-09-07 16:45:20 +02:00
|
|
|
}: {
|
2024-09-10 17:29:57 +02:00
|
|
|
websiteOverview: WebsiteOverview;
|
|
|
|
|
nestingLevel: number;
|
|
|
|
|
apiUrl: string;
|
2024-09-07 16:45:20 +02:00
|
|
|
title: string;
|
2024-09-07 18:22:58 +02:00
|
|
|
metaDescription?: string | null;
|
2024-09-07 16:45:20 +02:00
|
|
|
} = $props();
|
2024-08-20 19:17:05 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<svelte:head>
|
2024-09-19 16:46:36 +02:00
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>{title}</title>
|
|
|
|
|
<meta name="description" content={metaDescription ?? title} />
|
|
|
|
|
<link rel="stylesheet" href={`${"../".repeat(nestingLevel)}styles.css`} />
|
|
|
|
|
{#if websiteOverview.settings.favicon_image}
|
|
|
|
|
<link
|
|
|
|
|
rel="icon"
|
|
|
|
|
href="{apiUrl}/rpc/retrieve_file?id={websiteOverview.settings.favicon_image}"
|
|
|
|
|
/>
|
|
|
|
|
{/if}
|
2024-08-20 19:17:05 +02:00
|
|
|
</svelte:head>
|