I\'m somehow stuck and don\'t find the right way to do it.
I want to output a category list with the number of posts in each categorie.
I got this far: https://p
An incremental improvement over Hossain's answer, which sorts the categories. Tested with Jekyll 3.3.1:
Blog Posts Sorted By Category
{% assign sorted_categories = site.categories | sort %}
{% for tag in sorted_categories %}
{{ tag[0] | capitalize }}
{% assign pages_list = tag[1] %}
{% for post in pages_list %}
{% if post.title != null %}
{% if group == null or group == post.group %}
-
•
{{ post.title }}
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign group = nil %}
{% endfor %}