Browse Source

fix of broken links on English posts

master
manetta 5 years ago
parent
commit
efb6b4e9ef
  1. 14
      themes/varia/templates/index.html

14
themes/varia/templates/index.html

@ -79,7 +79,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 %}
@ -87,9 +91,17 @@
<span class="tags">
{{ glob.related_to }}
{% for tag in article.tags %}
{% if DEFAULT_LANG == 'en' %}
<span itemprop="keywords">
<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> {% endfor %}
</span>
{% endif %}
{% endfor %}
</span>
{% endif %}
</div>

Loading…
Cancel
Save