Following the Astro tutorial with Astro 5.0 but the markdownpost layout isn't working
Below is my MarkdownPostLayout.astro file
---
import BaseLayout from './BaseLayout.astro';
const { frontmatter } = Astro.props;
---
<BaseLayout pageTitle={frontmatter.title}>
<p>{frontmatter.pubDate.toString().slice(0,10)}</p>
<p><em>{frontmatter.description}</em></p>
<p>Written by: {frontmatter.author}</p>
<img src={frontmatter.image.url} width="300" alt={frontmatter.image.alt} />
<slot />
</BaseLayout>
My MDX posts are stored in src/pages/posts
e.g. post-1.mdx, post-2.mdx
Is there anything obvious I need to change?