--- import type { Thing } from "schema-dts"; import { config } from "../config"; import JsonLd from "./JsonLd.astro"; type Props = { readonly description: string; readonly lang: string; readonly modifiedTime?: string; readonly ogType?: "website" | "article"; readonly preview: string; readonly publishedTime?: string; readonly robots?: string; readonly schema: Thing[]; readonly title: string; }; const { description, lang, modifiedTime, ogType = "website", preview, publishedTime, robots = "index, follow", schema, title } = Astro.props; const canonicalUrl = new URL(Astro.url.pathname, Astro.site); const previewUrl = new URL(preview, Astro.site); const ogLocale = lang === "ru" ? "ru_RU" : "en_US"; ---