--- import smartypants from 'smartypants'; import siteInfo from '../../data/site-info'; import FontPreload from './FontPreload.astro'; import SEO from './SEO.astro'; import Favicon from '/media/polyfrost/minimal_bg.svg?url'; export type Props = { title?: string; description?: string; image?: { src: string; alt: string }; canonicalURL?: URL | null; pageType?: 'website' | 'article'; }; const twitterHandle = 'polyfrost'; const { description = siteInfo.description, image = siteInfo.image, canonicalURL = new URL(Astro.request.url, Astro.site), pageType = 'website', } = Astro.props; const title = [Astro.props.title, siteInfo.name].filter(Boolean).join(' | '); const resolvedImage = { src: new URL(image.src, Astro.site).toString(), alt: image.alt, }; ---