{% for cat in site.categories %}
{% capture cat_name %}{{ cat | first }}{% endcapture %}
{{ cat_name }}
{% for post in site.categories[cat_name] %} {% endfor %}
{% endfor %}