also fixed the broken category links in the article view

This commit is contained in:
manetta 2019-10-22 22:17:33 +02:00
parent efb6b4e9ef
commit 1174a869f3

View File

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