15 September 2023
After two decades, I recently migrated my blog from WordPress to Jekyll, a static website generator. I’ll write another article soon on why and the process, but as I continue to tweak the site, I wanted to quickly post how to do something that was surprisingly difficult to find.
On my Guide page, I wanted to link to the index pages of my categories and tags, and in addition, I wanted to show the count of each.
This article describes how to bring generate tag and categories index pages, but I couldn’t find any articles describing how to display how many articles were in each tag or category.
After some trial and error, here’s the code that finally works: