From 813dfbcbd913657ca8aae3ee10751c072e661d74 Mon Sep 17 00:00:00 2001 From: "betalabor.de" Date: Mon, 27 Apr 2026 21:16:21 +0200 Subject: [PATCH] 12 --- src/pages/cv/[hash].astro | 18 ++++++++++++++++++ src/pages/editor/[id].astro | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/pages/cv/[hash].astro b/src/pages/cv/[hash].astro index c87961e..c39c721 100644 --- a/src/pages/cv/[hash].astro +++ b/src/pages/cv/[hash].astro @@ -250,6 +250,23 @@ const de = lang === "de"; ).then((r) => r.text()); } catch (e) {} + // ── NEU: Alle lokalen Link-Stylesheets fetchen (Astro Component CSS) ── + const linkedCss = ( + await Promise.all( + Array.from(document.querySelectorAll('link[rel="stylesheet"]')) + .map((l) => l.href) + .filter( + (href) => + href.startsWith(origin) && !href.includes("fonts.googleapis"), + ) + .map((href) => + fetch(href) + .then((r) => r.text()) + .catch(() => ""), + ), + ) + ).join("\n"); + const inlineStyles = Array.from(document.querySelectorAll("style")) .map((s) => s.textContent) .join("\n"); @@ -281,6 +298,7 @@ const de = lang === "de";