How to Display Blog Post Count on Docusaurus Homepage
Ā· 4 min read
Many developers using Docusaurus want to display the number of blog posts they have-especially on their homepage. While this may sound trivial, doing it the right way (that works on both your local dev and production builds like Vercel) requires some thought.
Hereās a simple and reliable way to implement this-no hacks, no unstable APIs, just clean engineering.