--- import Navigation from "../components/nav.astro"; import FragmentID from "../components/fragment-id.astro"; import "./style.css"; import { getCollection, getEntry } from "astro:content"; const allFragments = await getCollection("fragment"); --- Astro
{ allFragments.map((f, ix) => (
{ix}

{f.data.title}

{f.data.preview}

)) }