Improved: Count Blog Posts in Docusaurus Including Folders
馃攧 Update to: Count Number of Blog Posts in Docusaurus and Vercel
In my previous post, I shared a method to count the number of blog posts in a Docusaurus project and display it on your homepage, fully compatible with Vercel and static builds.
That method works great-if all your blog posts are plain .md or .mdx files in the blog/ directory.
But if you're like me and prefer organizing blog posts in folders (e.g., blog/my-post/index.md), the previous approach silently misses those.
