--- import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import '../styles/global.css'; type OpenGraphType = 'website' | 'article'; type StructuredData = Record; interface Props { title?: string; description?: string; image?: string; ogType?: OpenGraphType; robots?: string; publishedTime?: Date; updatedTime?: Date; authorUrl?: string; tags?: string[]; structuredData?: StructuredData; } const { title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework', description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.', image = '/og.png', ogType = 'website', robots = 'index, follow', publishedTime, updatedTime, authorUrl, tags, structuredData, } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString(); const ogImageURL = new URL(image, Astro.site).toString(); const serializedStructuredData = structuredData ? JSON.stringify(structuredData).replace(/ {title} { ogType === 'article' && ( <> {publishedTime && } {updatedTime && } {authorUrl && } {tags?.map((tag) => )} ) } {serializedStructuredData &&