2fef91a548
Full parity with Astro site: content rows, post/tag routes, pagination, event badges + OSM map, comments, Live-Search via /api/search-index, CMS image proxy, RSS, sitemap. Deploy: Dockerfile + docker-compose.prod.yml + Gitea Actions workflow to build + push to git.pm86.de registry and ssh-deploy to Contabo.
13 lines
559 B
TypeScript
13 lines
559 B
TypeScript
/**
|
|
* Iconify Offline: MDI-Collection für Server und Client registrieren.
|
|
* Muss an zwei Stellen importiert werden (Side-Effect-Import), damit
|
|
* <Icon icon="mdi:…" /> überall gleich rendert (kein Hydration-Mismatch):
|
|
* 1. Layout.astro (--- Block) → läuft beim SSR
|
|
* 2. Header.svelte (oder andere frühe client:load-Komponente) → läuft im Browser
|
|
* Danach können alle Svelte-Komponenten Icon ohne API nutzen.
|
|
*/
|
|
import { addCollection } from "@iconify/svelte";
|
|
import { icons as mdiIcons } from "@iconify-json/mdi";
|
|
|
|
addCollection(mdiIcons);
|