const featuresWithPosts: FeatureWithPosts[] = await Promise.all( FEATURES.map(async (feature) => { const posts = ( await Promise.all( feature.blogPosts .filter((slug) => allSlugs.includes(slug)) .map((slug) => import(
@/markdown/blog/${slug}.mdx
))
)
).map((mod) => mod.metadata);
return { feature, posts };
})
);
{/_ Blog Grid _/} {Boolean(posts.length) && (