mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-04-05 17:33:31 -04:00
Brought in latest changes from main including: - RSS feed implementation - First letter edge case fixes - Updated ranking formula Resolved conflicts by: - Combining .env.example variables from both branches - Keeping auth version (3.0.0alpha) - Preserving extended user schema from auth - Keeping onMount umami approach and adding RSS feed link Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
27 lines
790 B
Svelte
27 lines
790 B
Svelte
<script lang="ts">
|
|
import { onMount } from 'svelte';
|
|
import { browser } from '$app/environment';
|
|
|
|
import "./layout.css";
|
|
import favicon from "$lib/assets/favicon.ico";
|
|
|
|
onMount(() => {
|
|
if (browser) {
|
|
const script = document.createElement('script');
|
|
script.defer = true;
|
|
script.src = 'https://umami.snail.city/script.js';
|
|
script.setAttribute('data-website-id', '5b8c31ad-71cd-4317-940b-6bccea732acc');
|
|
script.setAttribute('data-domains', 'bibdle.com,www.bibdle.com');
|
|
document.body.appendChild(script);
|
|
}
|
|
});
|
|
|
|
let { children } = $props();
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<link rel="icon" href={favicon} />
|
|
<link rel="alternate" type="application/rss+xml" title="Bibdle RSS Feed" href="/feed.xml" />
|
|
</svelte:head>
|
|
{@render children()}
|