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

20 lines
464 B
Plaintext
Raw Normal View History

2023-07-22 13:18:15 +00:00
{% 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>
2023-07-23 08:47:23 +00:00
{% endif %}