--- import Container from "./Container.astro"; import Link from "./Link.astro"; const pathname = Astro.url.pathname.replace(/\/$/, "") || "/"; ---