Skip to main content
Photo of DeepakNess DeepakNess

Showing stats in the footer

Unproofread notes

Earlier I started showing some random stats about my blog on the about page, but now I have also started to show the total words and total posts and notes in the footer section as well, as you see in the screenshot here.

Showing stats in the footer

It's totally not relevant in any way, but it's super cool to dynamically have this shown in the footer.

Earlier, I was calculating these stats separately at both /about page and footer section, and that increase the build time by ~15 seconds. But I now have a better setup and as I am doing the calculations only once and then showing the data at both places.

In the future, I will spend more time on the stats thing and probably even have a separate /stats page showing much more relevant data about my blog.

Comment via email