mirror of
https://github.com/codeninjasuk/codeninjasuk.github.io.git
synced 2024-11-26 01:07:53 -05:00
19 lines
No EOL
852 B
HTML
19 lines
No EOL
852 B
HTML
{% case site.category_archive.type %}
|
|
{% when "liquid" %}
|
|
{% assign path_type = "#" %}
|
|
{% when "jekyll-archives" %}
|
|
{% assign path_type = nil %}
|
|
{% endcase %}
|
|
|
|
{% if site.category_archive.path %}
|
|
{% assign categories_sorted = page.categories | sort_natural %}
|
|
|
|
<p class="page__taxonomy">
|
|
<strong><i class="fas fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>
|
|
<span itemprop="keywords">
|
|
{% for category_word in categories_sorted %}
|
|
<a href="{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path | relative_url }}" class="page__taxonomy-item p-category" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
|
{% endfor %}
|
|
</span>
|
|
</p>
|
|
{% endif %} |