--- import { getSiteStats } from '../lib/entries'; import SEO from '../components/SEO.astro'; import EditConfirm from '../components/EditConfirm.astro'; import type { OgImage } from '../components/SEO.astro'; interface Props { title: string; description?: string; subheader?: string; subheaderSubtitle?: string; subheaderVariant?: 'tagline' | 'headline'; lastUpdated?: Date; canonicalPath?: string; canonicalOverride?: string; ogType?: 'website' | 'article'; ogImage?: OgImage; noindex?: boolean; publishedTime?: Date; modifiedTime?: Date; articleTags?: string[]; jsonLd?: Record | Record[]; /** Page-scoped feeds (category/tag) advertised alongside the site-wide ones. */ feeds?: Array<{ title: string; href: string }>; /** Opt into the wider content tier on roomy viewports (grid/listing pages). */ wide?: boolean; } const { title, description = 'A small log of delightful, unique things — products, apps, phenomena, oddities.', subheader, subheaderSubtitle, subheaderVariant = 'tagline', lastUpdated, canonicalPath, canonicalOverride, ogType, ogImage, noindex, publishedTime, modifiedTime, articleTags, jsonLd, feeds, wide, } = Astro.props; const siteName = 'Unique'; const SITE_FOUNDED = new Date(2026, 4, 3); const stats = await getSiteStats(); const fmtLong = new Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC', }); const fmtShort = new Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'short', day: 'numeric', }); const updatedDate = lastUpdated ?? stats.lastUpdated; const year = new Date().getFullYear(); ---
{subheader && (

{subheader}

{subheaderSubtitle && subheaderVariant === 'headline' && (

{subheaderSubtitle}

)} {updatedDate && subheaderVariant === 'headline' && (

)} {updatedDate && subheaderVariant !== 'headline' && (

Updated

)}
)}
{import.meta.env.DEV && }