--- layout: page --- {{ content }} {% capture site_tags %}{% for tag in site.tags %}{{ tag | first | downcase }}|{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign tag_words = site_tags | split:',' | sort %}
{% for tag_pair in tag_words %} {% assign tag = tag_pair | split:'|' | last %} {% if page.tags %} {% unless page.tags contains tag %} {% continue %} {% endunless %} {% endif %} {{ tag }} {{ site.tags[tag] | size }} {% endfor %}

{% for tag_pair in tag_words %} {% assign tag = tag_pair | split:'|' | last %}

{{ tag }}

{% for post in site.tags[tag] %} {% include post-list-entry.html post=post %} {% endfor %}
{% endfor %}