--- import Base from './Base.astro'; interface Props { title: string; description: string; pubDate: Date; updatedDate?: Date; author: string; tags?: string[]; heroImage?: string; body: string; } const { title, description, pubDate, updatedDate, author, tags, heroImage, body } = Astro.props; const dateFormat = new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric', year: 'numeric', timeZone: 'UTC', }); const wordCount = body.trim().split(/\s+/).filter(Boolean).length; const readingTime = Math.max(1, Math.round(wordCount / 200)); const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString(); const heroImageURL = new URL(heroImage ?? '/og.png', Astro.site).toString(); const structuredData = { '@context': 'https://schema.org', '@type': 'BlogPosting', headline: title, description, image: heroImageURL, datePublished: pubDate.toISOString(), dateModified: (updatedDate ?? pubDate).toISOString(), author: { '@type': 'Person', name: author, }, publisher: { '@type': 'Organization', name: 'Expressive Tea Team', }, mainEntityOfPage: canonicalURL, ...(tags && tags.length > 0 ? { keywords: tags.join(', ') } : {}), }; ---

← Back to the blog

{title}

{tags && tags.length > 0 && ( )}

← Back to the blog