{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign tags_list = site_tags | split:',' | sort %} {% for item in (0..site.tags.size) %}{% unless forloop.last %} {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
{{ this_word }}
    {% for post in site.tags[this_word] %}{% if post.title != null %}
  • {{ post.title }}
  • {% endif %}{% endfor %}
{% endunless %}{% endfor %}