19 lines
469 B
Django/Jinja
19 lines
469 B
Django/Jinja
<p class="lang">
|
|
{% if home %}
|
|
🌐
|
|
{% for key, value in config.languages.items() %}
|
|
{% if key != language %}
|
|
<a href="/{{ key }}">{{ value.language_name }}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
🌐
|
|
{% for key, value in config.languages.items() %}
|
|
{% if key != language %}
|
|
<a href="/{{ key + url if url else key + "/" + section }}">{{
|
|
value.language_name }}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|