I’ve had some blog stats available on my About page for a while, but I wanted to see if I could make my script a little more robust. For one, I wanted more stats, but I also wanted graphs.
What I had before was a simple bash script that would post the total number of posts and the total word count. Every time I would publish a post, Hugo itself would run the script and output to a shortcode. It was janky and didn’t really count things accurately.