{% assign articles_with_categories = "" | split:"" %} {% for article in site.articles %} {% if article.lang == page.lang %} {% if article.category %} {% assign articles_with_categories = articles_with_categories | push:article %} {% endif %} {% endif %} {% endfor %} {% assign articles_with_categories = articles_with_categories | reverse %} {% assign categories = "" | split:"" %} {% for article in articles_with_categories %} {% assign article_categories = article.category | split:"," %} {% for article_category in article_categories %} {% assign categories = categories | push:article_category %} {% endfor %} {% endfor %} {% assign unique_categories = categories | sort | uniq %} {% for category in unique_categories %}

{{ category }}:

{% endfor %}