--- import { getCollection } from 'astro:content' import {astroI18n} from "astro-i18n"; import NavbarLayout from "../layouts/NavbarLayout.astro"; export async function getStaticPaths() { let posts = await getCollection("pages"); return posts.filter(value => value.id.split("/")[0] === astroI18n.langCode).map((page) => ({ props: { page }, params: { slug: page.slug } }) ) } const { page } = Astro.props; const { Content } = await page.render(); ---

{page.data.title}

{page.data.description}