--- import { documentMetadata, type Document } from '../lib/content'; import PageMeta from './PageMeta.astro'; type Props = { entry: Document; readingTime?: boolean }; const { entry, readingTime = false } = Astro.props; const minutes = readingTime ? Math.max(1, Math.ceil((entry.body?.match(/\S+/g)?.length || 0) / 200)) : undefined; ---