--- import { env } from "@lib/environment"; import "../styles/global.css"; import { ClientRouter } from "astro:transitions"; export interface Props { title: string; description?: string; image?: string; keywords?: string[]; } const { PUBLIC_SITE_TITLE, PUBLIC_SITE_DESCRIPTION, PUBLIC_SITE_AUTHOR, PUBLIC_TOR_URL, } = env; const isOnion = Astro.url.origin.endsWith(".onion"); const alternate = !isOnion ? PUBLIC_TOR_URL : Astro.site; const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description = PUBLIC_SITE_DESCRIPTION, image = new URL("favicon.svg", Astro.site), keywords = [], } = Astro.props; --- {title} {keywords.length > 0 && }