Don't display translation for the current language

This commit is contained in:
southerntofu 2021-02-02 20:01:02 +01:00
parent 2d112f9ab3
commit 105232b9ed
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ Separate entries with a thematic break:
{%- endmacro i18n_url -%}
{% macro translations(translations) %}
({{ lang }}) {% for t in translations %}<a href="{{ t.permalink }}">{{ t.lang }}</a>{% endfor %}
({{ lang }}){% for t in translations %}{% if lang != t.lang %} <a href="{{ t.permalink }}">{{ t.lang }}</a>{% endif %}{% endfor %}
{% endmacro translations %}
{%- macro strip_lang_from_path(path, lang) -%}