@late dune my content collection is called "blog", it contains multiple categories such as "trees", "flowers", "animals", those three are folders. Each folder has index.md file, and also multiple subfolders for individual blog posts, such as post-1, post-2 and so on, which contain index.md.
I want to render those pages, but the code renders only index.md that are inside flowers, animals and trees folders and not subfolders within those folders (post-1, post-2)
import { getCollection } from 'astro:content';
export async function getStaticPaths() {
const blogEntries = await getCollection('blog');
return blogEntries.map(entry => ({
params: { slug: entry.slug },
props: { entry },
}));
}
const { entry } = Astro.props;
const { Content } = await entry.render();
<Content />