Skip to main content

11 posts tagged with "vercel"

vercel tag description

View All Tags

How to Display Blog Post Count on Docusaurus Homepage

Ā· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

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.