add umami analytics

This commit is contained in:
2026-09-17 03:16:53 +00:00
parent 78ea93b1f7
commit ff5661a635

View File

@@ -19,6 +19,7 @@
import SiSignal from '~icons/simple-icons/signal';
import SiWhatsapp from '~icons/simple-icons/whatsapp';
import { resolve } from '$app/paths';
import { dev } from '$app/environment';
let { children } = $props();
@@ -48,9 +49,29 @@
];
</script>
<svelte:head>
{#if !dev}
<script
defer
src="https://cloud.umami.is/script.js"
data-website-id="47f2b385-188a-4776-a287-4889008ebac5"
></script>
{/if}
</svelte:head>
<div class="flex flex-col min-h-screen">
<header class="flex justify-between items-center gap-4 py-4 px-4">
<a href={resolve('/')} class="text-2xl font-bold underline">Stan Runge</a>
<div class="flex gap-8">
<div class="text-center py-2 font-bold text-xl ">
<a href={resolve('/blog')}>Blog</a>
</div>
<div class="text-center py-2 font-bold text-xl ">
<a href={resolve('/projects')}>Projects</a>
</div>
</div>
<nav class="flex flex-wrap justify-center gap-4" aria-label="Social links">
{#each copies as c (c.label)}
<CopyButton {...c} />