{% comment %} {% endcomment %} {% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign tag_hashes = (page_tags | split: ',' | sort:0) %} Filed under: {% for hash in tag_hashes %} {% assign keyValue = hash | split: '#' %} {% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} {% if forloop.last %} and{% endif %} {% unless forloop.last %}, {% endunless %} {% endfor %}