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; + ---