--- import { getCollection } from "astro:content"; import Layout from "@layouts/Layout.astro"; import Container from "@components/container.astro"; // Generate a new path for every collection entry export async function getStaticPaths() { const blogEntries = await getCollection("blog"); return blogEntries.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } // Get the entry directly from the prop on render const { entry } = Astro.props; const { Content } = await entry.render(); ---
{entry.data.category}

{entry.data.title}

{entry.data.author}
{ entry.data.tags.map((tag) => ( #{tag} )) }