--- import "../styles/global.css"; import Navbar from "../components/Navbar.astro"; import Footer from "../components/Footer.astro"; import CookieBanner from "../components/CookieBanner.astro"; import logo from "../assets/logo.svg"; import { SEO } from "astro-seo"; export interface Props { /** Optional granular SEO overrides coming from .astro pages or components */ seo?: { title?: string; description?: string; }; /** Standard front‑matter fields coming from Markdown/MDX pages */ title?: string; description?: string; } // Destructure front‑matter fields as well as the existing `seo` object const { seo = {}, title, description } = Astro.props; /** Merge explicit `seo` overrides with any front‑matter fields. * Values defined in `seo` win over front‑matter, preserving backward compatibility. */ const seoConfig = { ...seo, title: seo.title ?? title, description: seo.description ?? description, }; ---