franca-theme-blog/templates/components/all_languages.j2

19 lines
469 B
Django/Jinja

<p class="lang">
{% if home %}
&#127760;
{% for key, value in config.languages.items() %}
{% if key != language %}
<a href="/{{ key }}">{{ value.language_name }}</a>
{% endif %}
{% endfor %}
{% else %}
&#127760;
{% 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>