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

19 lines
463 B
Django/Jinja

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