--- import { SITE, OPEN_GRAPH } from '../config'; export interface Props { frontmatter: any; site: any; canonicalURL: URL | string; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { frontmatter = {} } = Astro.props; const formattedContentTitle = frontmatter.title ? `${frontmatter.title} 🚀 ${SITE.title}` : SITE.title; const imageSrc = frontmatter?.image?.src ?? OPEN_GRAPH.image.src; const canonicalImageSrc = new URL(imageSrc, Astro.site); const imageAlt = frontmatter?.image?.alt ?? OPEN_GRAPH.image.alt; ---