--- import "../styles/global.css"; import Nav from "../components/Nav.astro"; import Footer from "../components/Footer.astro"; import { site } from "../data/site"; interface Props { title?: string; description?: string; /** Path to the page, e.g. "/projects" — used for canonical + OG url. */ path?: string; } const { title, description = site.positioning, path = "/", } = Astro.props; const pageTitle = title ? `${title} — ${site.name}` : `${site.name} · ${site.role}`; const canonical = new URL(path, site.url).href; const ogImage = new URL(site.ogImage, site.url).href; --- {pageTitle}