Add current language in the translations macro

This commit is contained in:
southerntofu 2020-04-01 16:43:40 +02:00
parent 4a4fb62687
commit 43243d3e0c

View File

@ -56,7 +56,7 @@ a submenu. A submenu is an actual list
{%- endmacro i18n_url -%}
{% macro translations(translations) %}
{% for t in translations %}<a href="{{ t.permalink }}">{{ t.lang }}</a>{% endfor %}
({{ lang }}) {% for t in translations %}<a href="{{ t.permalink }}">{{ t.lang }}</a>{% endfor %}
{% endmacro translations %}
{% macro bubble(content, v="bottom", h="right") %}