--- import '../styles/tokens.css'; import '../styles/global.css'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import { renderBrand } from '../lib/brand.mjs'; import { token } from '../lib/tokens.mjs'; interface Props { title: string; description: string; /** Suppress the site name suffix — the homepage sets its own full title. */ bareTitle?: boolean; } const { title, description, bareTitle = false } = Astro.props; // Per-request routes read the mount; prerendered pages take the stock value and let the // boot rewrite carry the mount in. See `renderBrand` in src/lib/brand.mjs (phase 11). const brand = renderBrand(Astro); const fullTitle = bareTitle ? title : `${title} — ${brand.siteName}`; const canonical = new URL(Astro.url.pathname, Astro.site); --- {fullTitle}