--- import { getCollection, render } from "astro:content"; import Main from "../layouts/Main.astro"; const projects = await getCollection("projects"); const projReady = await Promise.all( projects.map(async (proj) => [proj, (await render(proj)).Content] as const), ); ---
{ projReady.map(([proj, Content]) => (
{proj.data.image && {proj.data.hide_name}

{proj.data.name}

)) }