--- // Base layout with production site chrome (nav, footer, support widget). // Reads nav.html and footer.html partials extracted from the production // homepage and includes them around the page content. import { readFileSync } from "fs"; import { resolve } from "path"; export interface Props { title: string; description?: string; } const { title, description = "" } = Astro.props; // Read the nav + footer partials (extracted from prod homepage) let navHtml = ""; let footerHtml = ""; try { navHtml = readFileSync(resolve("src/partials/nav.html"), "utf-8"); footerHtml = readFileSync(resolve("src/partials/footer.html"), "utf-8"); } catch { // Partials not found — render without chrome (dev fallback) } ---