--- import "../styles/global.css"; import PostHog from "../components/PostHog.astro"; import sequoia from "../../sequoia.json"; interface Props { title: string; description: string; /** "article" for a post, so unfurlers stop calling it a site. */ ogType?: "website" | "article"; /** AT-URI of the record this page was rendered from, if it has one. */ atUri?: string; } const { title, description, ogType = "website", atUri } = Astro.props; // The publication this site is. Read from the config that also fills // public/.well-known/site.standard.publication, so the tag and the endpoint a // verifier checks it against cannot drift. Before `sequoia init` runs the // config carries a placeholder, and a tag resolving to nothing is worse than // no tag — the same rule the document link below follows. const publication = /^at:\/\/[^/]+\/site\.standard\.publication\/[^/]+$/.test( sequoia.publicationUri, ) ? sequoia.publicationUri : undefined; // Unfurl crawlers resolve nothing relative, so these must be absolute. const canonical = new URL(Astro.url.pathname, Astro.site); const card = new URL("/og.png", Astro.site); ---