fix of broken links on English posts
This commit is contained in:
parent
416520e793
commit
efb6b4e9ef
@ -79,7 +79,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 %}
|
||||||
@ -87,9 +91,17 @@
|
|||||||
<span class="tags">
|
<span class="tags">
|
||||||
{{ glob.related_to }}
|
{{ glob.related_to }}
|
||||||
{% for tag in article.tags %}
|
{% for tag in article.tags %}
|
||||||
<span itemprop="keywords">
|
{% if DEFAULT_LANG == 'en' %}
|
||||||
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
|
<span itemprop="keywords">
|
||||||
</span> {% endfor %}
|
<a href="/en/{{ tag.url }}" rel="tag">{{ tag }}</a>
|
||||||
|
</span>
|
||||||
|
{% elif DEFAULT_LANG == 'nl' %}
|
||||||
|
<span itemprop="keywords">
|
||||||
|
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user