Remove links from categories

This commit is contained in:
David Darnes 2018-01-01 21:52:29 +00:00
parent 5c3749f7df
commit 84430a140b

View File

@ -1,12 +1,12 @@
{% if page.categories %}
{% capture categories %}
{% for category in page.categories %}
<span class="label label--category"><a href="{{ site.baseurl }}/categories#{{ category | downcase }}">{{ category }}</a></span>{% if forloop.last == false %},{% endif %}
<span class="label label--category">{{ category }}</span>{% if forloop.last == false %},{% endif %}
{% endfor %}
{% endcapture %}
{% elsif page.category %}
{% capture categories %}
<span class="label label--category"><a href="{{ site.baseurl }}/categories#{{ page.category | downcase }}">{{ page.category }}</a></span>
<span class="label label--category">{{ page.category }}</span>
{% endcapture %}
{% endif %}