--- // Import section components import MainLayout from "../../layouts/MainLayout.astro"; import { Image } from "astro:assets"; import { getCollection } from "astro:content"; // Use `getStaticPaths` to generate static routes for generated pages on build export async function getStaticPaths() { const insightPosts = await getCollection("insights"); return insightPosts.map((post) => ({ params: { slug: post.slug }, props: { post }, })); } // Get the props for this page that define a specific insight post const { post } = Astro.props; ---
{post.data.cardImageAlt}

{post.data.title}

{ post.data.contents.map((content) => (

{content}

)) }