--- import { getCollection } from "astro:content"; const allFragments = await getCollection("fragment"); type Fragment = (typeof allFragments)[0]; type FragmentProps = { f: Fragment; ix: number; }; const { f, ix } = Astro.props as FragmentProps; const fragmentNumber = ix.toString().padStart(3, "0"); ---
{fragmentNumber}

{f.data.title}

{f.data.preview}