--- import { type GetStaticPaths } from "astro" import { getCollection, type CollectionEntry } from "astro:content" import AppFooter from "~/components/app-footer.astro" import Layout from "~/components/layout.astro" import MainNavigation from "~/components/main-navigation.astro" import NavLink from "~/components/nav-link.astro" export type Props = { guide: CollectionEntry<"guides"> } export const getStaticPaths: GetStaticPaths = async () => { const guides = await getCollection("guides") return guides.map((guide) => ({ params: { slug: guide.slug }, props: { guide }, })) } const guides = await getCollection("guides") const { Content } = await Astro.props.guide.render() ---