--- import { getBlogPosts } from "../../../content/config"; import BlogPost from "../../../layouts/BlogPost.astro"; export async function getStaticPaths() { const pages = await getBlogPosts(); const paths = pages.map((page) => { return { // @ts-ignore params: { lang: page?.data.language, slug: page.blog_slug }, props: page, }; }); return paths; } const { lang } = Astro.params; const page = Astro.props; // @ts-ignore const formattedDate = page.data.publishDate.toLocaleString(lang); const { Content } = await page.render(); ---

{page.data.title}

{page.data.author} • {formattedDate}