--- /** * Base Layout * * Main layout with header, footer, and navigation from EmDash menus. */ import { getMenu, getSiteSettings } from "emdash"; import "../styles/global.css"; interface Props { title?: string; description?: string; } const { title, description } = Astro.props; // These APIs automatically get the database from the Astro context const settings = await getSiteSettings(); const primaryMenu = await getMenu("primary"); const footerMenu = await getMenu("footer"); const siteTitle = settings.title || "My Site"; const pageTitle = title ? `${title} | ${siteTitle}` : siteTitle; --- {pageTitle} {description && }