--- // Import section components import { SITE } from "@/data_files/constants"; 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; const { Content } = await post.render(); const pageTitle: string = `${post.data.title} | ${SITE.title}`; ---
{post.data.cardImageAlt}

{post.data.title}