--- layout: archive --- {% assign categories_max = 0 %} {% for category in collections.categories %} {% if collections[category].size > categories_max %} {% assign categories_max = collections[category].size %} {% endif %} {% endfor %} {% assign entries_layout = entries_layout | default: 'list' %} {% for i in (1..categories_max) reversed %} {% for category in collections.categories %} {% if collections[category].size == i %}

{{ category }}

{% for post in collections[category] %} {% include archive-single.html type=entries_layout aPost=post%} {% endfor %}
{{ ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endif %} {% endfor %} {% endfor %}