{% case site.category_archive.type %} {% when "liquid" %} {% assign path_type = "#" %} {% when "jekyll-archives" %} {% assign path_type = nil %} {% endcase %} {% if site.category_archive.path %} {% comment %} {% endcomment %} {% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign category_hashes = page_categories | split: ',' | sort %}
{{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} {% for hash in category_hashes %} {% assign keyValue = hash | split: '#' %} {% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} {{ category_word }}{% unless forloop.last %}, {% endunless %} {% endfor %}
{% endif %}