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

19 lines
469 B
Plaintext
Raw Normal View History

2023-07-25 07:45:30 +00:00
<p class="lang">
2023-07-22 13:18:15 +00:00
{% if home %}
2023-07-25 07:45:30 +00:00
&#127760;
2023-07-22 13:18:15 +00:00
{% 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 %}
2023-07-23 08:47:23 +00:00
{% endif %}
2023-07-25 07:45:30 +00:00
</p>