I have a Jekyll site built and for the posts, I have 3 sub-categories.
These categories are: blog examples tips
In each one of these categories I also have sub-categories for html, css and js.
In each post I have front-matter and a categories tag which looks like this as an example:
categories: - blog
- html
I would like to create a loop that outputs the post count for each category. So if under blogs I have 2 posts in each sub-category:
- blogs
- HTML
- html-post1.md
- html-post2.md
- css
- css-post1.md
- css-post2.md
- js
- js-post1.md
- js-post2.md
How can I loop over this to just display the count instead of outputting each post?