add umami analytics
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
import SiSignal from '~icons/simple-icons/signal';
|
import SiSignal from '~icons/simple-icons/signal';
|
||||||
import SiWhatsapp from '~icons/simple-icons/whatsapp';
|
import SiWhatsapp from '~icons/simple-icons/whatsapp';
|
||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
|
import { dev } from '$app/environment';
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
@@ -48,9 +49,29 @@
|
|||||||
];
|
];
|
||||||
</script>
|
</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">
|
<div class="flex flex-col min-h-screen">
|
||||||
<header class="flex justify-between items-center gap-4 py-4 px-4">
|
<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>
|
<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">
|
<nav class="flex flex-wrap justify-center gap-4" aria-label="Social links">
|
||||||
{#each copies as c (c.label)}
|
{#each copies as c (c.label)}
|
||||||
<CopyButton {...c} />
|
<CopyButton {...c} />
|
||||||
|
|||||||
Reference in New Issue
Block a user