👩💻 Join our community of thousands of amazing developers!
A few months ago, I realized that I had written 100 posts on this blog. This prompted me to add a rake task to quickly look up stats about this blog. This is highly coupled to this blog’s theme, but hopefully someone might be able to convert this to work for their own blog. The taks prints out the number of posts, the total number of words written and number of posts by year. Here’s the task from my Rakefile: require "nokogiri" desc "Print stats about this blog" task :stats do yearly_stats = ...