--- import type { CollectionEntry } from 'astro:content'; import BaseHead from '../components/BaseHead.astro'; import FormattedDate from '../components/FormattedDate.astro'; type Props = CollectionEntry<'blog'>['data']; const { title, description, pubDate, updatedDate } = Astro.props; const canonicalUrl = new URL(Astro.url.pathname, Astro.site); const pubDateStr = `${pubDate.year}-${pubDate.month}-${pubDate.day}`; const updatedDateStr = updatedDate ? `${updatedDate.year}-${updatedDate.month}-${updatedDate.day}` : pubDateStr; ---

{title}