2016-03-11 15:39:20 +01:00
|
|
|
{% include base_path %}
|
|
|
|
|
2016-04-14 20:45:48 +02:00
|
|
|
{% include base_path %}
|
|
|
|
|
2016-05-30 03:12:24 +02:00
|
|
|
{% case site.category_archive.type %}
|
2016-03-11 15:39:20 +01:00
|
|
|
{% when "liquid" %}
|
|
|
|
{% assign path_type = "#" %}
|
|
|
|
{% when "jekyll-archives" %}
|
|
|
|
{% assign path_type = nil %}
|
|
|
|
{% endcase %}
|
|
|
|
|
2016-05-30 03:12:24 +02:00
|
|
|
{% if site.category_archive.path %}
|
2016-03-11 15:39:20 +01:00
|
|
|
{% 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 %}
|
|
|
|
{% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
|
|
|
{% assign category_hashes = (page_categories | split: ',' | sort:0) %}
|
|
|
|
|
2016-03-20 02:50:18 +01:00
|
|
|
<p class="page__taxonomy">
|
2016-07-29 18:16:53 +02:00
|
|
|
<strong><i class="fa fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>
|
2016-03-20 02:50:18 +01:00
|
|
|
<span itemprop="keywords">
|
|
|
|
{% for hash in category_hashes %}
|
|
|
|
{% assign keyValue = hash | split: '#' %}
|
|
|
|
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
2016-05-30 03:12:24 +02:00
|
|
|
<a href="{{ base_path }}{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path }}" class="page__taxonomy-item" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
2016-03-20 02:50:18 +01:00
|
|
|
{% endfor %}
|
|
|
|
</span>
|
2016-03-11 15:39:20 +01:00
|
|
|
</p>
|
|
|
|
{% endif %}
|