Something went wrong. Try again.
doll.systems community website
Something went wrong. Try again.
123456789101112---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;---
<PageMeta metadata={documentMetadata(entry)} minutes={minutes} />