--- import BaseLayout from '../../layouts/BaseLayout.astro'; export async function getStaticPaths() { const allPosts = import.meta.glob<{ Content: any; frontmatter: Record }>('../../../content/blog/*.mdx', { eager: true }); return Object.entries(allPosts).map(([path, post]) => { const slug = path.split('/').pop()?.replace('.mdx', '') || ''; return { params: { slug }, props: { post }, }; }); } const { post } = Astro.props as { post: { Content: any; frontmatter: Record } }; const { Content, frontmatter } = post; ---

{frontmatter.title}

{new Date(frontmatter.date).toLocaleDateString('de-DE', { year: 'numeric', month: 'long', day: 'numeric' })}

{frontmatter.coverImage && (
{frontmatter.title}
)}
← Back to all posts