--- import type { Fragment } from '../../lib/types'; import { extractListItems, countListItems } from '../../lib/variants'; interface Props { fragment: Fragment; } const { fragment: f } = Astro.props; const items = extractListItems(f.content ?? ''); const total = countListItems(f.content ?? ''); const dateStr = new Date(f.createdAt).toISOString().slice(0, 10); ---
list

{f.title}

{total > items.length && ( +{total - items.length} more )}