Added option to have an imprint

The environment Variable IMPRINT_URL simply adds a /imprint button in footer to the url
This commit is contained in:
Uli Roth
2024-09-23 15:44:21 +02:00
parent 847fc9677d
commit fca8761515
5 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import ThemeToggle from '$lib/ui/ThemeToggle.svelte'
import { status } from '$lib/stores/status'
</script>
<footer>
@@ -7,6 +8,9 @@
<nav>
<a href="/">/home</a>
<a href="/about">/about</a>
{#if $status?.imprint_url}
<a href={$status.imprint_url} target="_blank" rel="noopener noreferrer">/imprint</a>
{/if}
<a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener noreferrer">
code
</a>