Browse Source

also fixed the broken category links in the article view

pull/13/head
manetta 5 years ago
parent
commit
1174a869f3
  1. 8
      themes/varia/templates/article.html

8
themes/varia/templates/article.html

@ -69,7 +69,11 @@
{% if article.category %}
<span class="categories">
<span itemprop="articleSection">
{% if DEFAULT_LANG == 'en' %}
<a href="/en/category{{ article.category.url }}" rel="category">{{ article.category }}</a>
{% elif DEFAULT_LANG == 'nl' %}
<a href="/category{{ article.category.url }}" rel="category">{{ article.category }}</a>
{% endif %}
</span>
</span>
{% endif %}
@ -78,7 +82,11 @@
{{ glob.related_to }}
{% for tag in article.tags %}
<span itemprop="keywords">
{% if DEFAULT_LANG == 'en' %}
<a href="/en/{{ tag.url }}" rel="tag">{{ tag }}</a>
{% elif DEFAULT_LANG == 'nl' %}
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
{% endif %}
</span>
{% endfor %}
</span>

Loading…
Cancel
Save