--- interface Props { title: string; description?: string; canonical?: string; image?: string; lang?: string; type?: 'website' | 'article'; } const { title, description = '', canonical, image, lang = 'en', type = 'website' } = Astro.props; const absoluteImage = image ? new URL(image, Astro.site ?? Astro.url).href : undefined; --- {title} {canonical && } {canonical && } {absoluteImage && }