--- layout: default --- {% assign rawcats = "" %} {% for post in site.posts %} {% assign tcats = post.category | join:'|' | append:'|' %} {% assign rawcats = rawcats | append:tcats %} {% endfor %} {% assign rawcats = rawcats | split:'|' | sort %} {% assign cats = "" %} {% for cat in rawcats %} {% if cat != "" %} {% if cats == "" %} {% assign cats = cat | split:'|' %} {% endif %} {% unless cats contains cat %} {% assign cats = cats | join:'|' | append:'|' | append:cat | split:'|' %} {% endunless %} {% endif %} {% endfor %}
{% assign date_format = site.minima.date_format | default: "%Y-%m-%d %H:%M:%S" %} {% for ct in cats %}
  • {{ ct }}
  • {% for post in site.posts %} {% if post.category contains ct %}
    {{ post.title | escape }}
    {{ post.date | date: date_format }}
    {% endif %} {% endfor %} {% endfor %}