2016-10-30 01:02:14 +02:00
|
|
|
{% case site.category_archive.type %}
|
|
|
|
{% when "liquid" %}
|
|
|
|
{% assign path_type = "#" %}
|
|
|
|
{% when "jekyll-archives" %}
|
|
|
|
{% assign path_type = nil %}
|
|
|
|
{% endcase %}
|
|
|
|
|
|
|
|
{% if site.category_archive.path %}
|
|
|
|
{% comment %}
|
|
|
|
<!-- Sort alphabetically regardless of case e.g. a B c d E -->
|
|
|
|
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
|
|
|
|
{% endcomment %}
|
2019-07-06 03:15:10 +02:00
|
|
|
{% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}|{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
2017-10-28 21:58:34 +02:00
|
|
|
{% assign category_hashes = page_categories | split: ',' | sort %}
|
2016-10-30 01:02:14 +02:00
|
|
|
|
|
|
|
<p class="page__taxonomy">
|
2019-07-06 03:15:10 +02:00
|
|
|
<strong><i class="fas fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>
|
2016-10-30 01:02:14 +02:00
|
|
|
<span itemprop="keywords">
|
|
|
|
{% for hash in category_hashes %}
|
2019-07-06 03:15:10 +02:00
|
|
|
{% assign keyValue = hash | split: '|' %}
|
2016-10-30 01:02:14 +02:00
|
|
|
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
2019-07-06 03:15:10 +02:00
|
|
|
<a href="{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path | relative_url }}" class="page__taxonomy-item" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
2016-10-30 01:02:14 +02:00
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
</p>
|
2019-07-06 03:15:10 +02:00
|
|
|
{% endif %}
|