mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add categories for docs template
This commit is contained in:
19
web-app/src/lib/templates/common/Head.svelte
Normal file
19
web-app/src/lib/templates/common/Head.svelte
Normal file
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
const {
|
||||
title,
|
||||
favicon,
|
||||
nestingLevel = 0
|
||||
}: { title: string; favicon: string; nestingLevel?: number } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{title}</title>
|
||||
<link rel="stylesheet" href={`${"../".repeat(nestingLevel)}styles.css`} />
|
||||
{#if favicon}
|
||||
<link rel="icon" href={favicon} />
|
||||
{/if}
|
||||
</head>
|
||||
</svelte:head>
|
||||
Reference in New Issue
Block a user