From 15b2a34957b9bb372994394a21f536b8ff830e51 Mon Sep 17 00:00:00 2001 From: Daniel S Date: Sun, 9 Aug 2026 22:45:01 +0200 Subject: [PATCH] fix(types): add ogImage prop to Layout and message prop to FallbackSection --- src/components/sections/FallbackSection.astro | 8 +++++--- src/layouts/Layout.astro | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/sections/FallbackSection.astro b/src/components/sections/FallbackSection.astro index f458f47..a747f9b 100644 --- a/src/components/sections/FallbackSection.astro +++ b/src/components/sections/FallbackSection.astro @@ -1,13 +1,15 @@ --- interface Props { - sectionName: string; + sectionName?: string; + message?: string; } -const { sectionName } = Astro.props; +const { sectionName = 'Unbekannt', message } = Astro.props; ---
-

⚙️ Section {sectionName} ist noch in Bearbeitung oder Platzhalter.

+

⚙️ {message || `Section ${sectionName} ist noch in Bearbeitung oder Platzhalter.`}

+ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 49af256..1f8dca4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -15,13 +15,15 @@ import { THEME_PRESETS } from '../utils/themePresets'; interface Props { title: string; description?: string; + ogImage?: string; } const { siteConfig, themeConfig } = loadWaasConfigs(Astro.request.headers.get('user-agent') ?? ''); const activePreset = THEME_PRESETS[themeConfig.activePreset] || THEME_PRESETS.corporateDark; const colors = activePreset.colors; -const { title, description = "Professionelles Webdesign & moderne Websites." } = Astro.props; +const { title, description = "Professionelles Webdesign & moderne Websites.", ogImage } = Astro.props; + ---