--- import '../styles/global.css'; import type { ImageMetadata } from 'astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; interface Props { title: string; description: string; image?: ImageMetadata; type?: 'website' | 'article'; publishedTime?: Date; modifiedTime?: Date; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description, image, type = 'website', publishedTime, modifiedTime, } = Astro.props; --- {title} {image && ( <> )} {publishedTime && } {modifiedTime && }