{% assign entries_with_categories = "" | split:"" %} {% for entry in site[include.kind] %} {% if entry.lang == page.lang %} {% if entry.eu_categories %} {% assign entries_with_categories = entries_with_categories | push:entry %} {% endif %} {% endif %} {% endfor %} {% assign entries_with_categories = entries_with_categories | reverse %} {% assign categories = "" | split:"" %} {% for entry in entries_with_categories %} {% assign entry_categories = entry.eu_categories | split:"," %} {% for entry_category in entry_categories %} {% assign categories = categories | push:entry_category %} {% endfor %} {% endfor %} {% assign unique_categories = categories | sort | uniq %} {% for category in unique_categories %}