Add cross-language links in the index template.
This commit is contained in:
parent
d9c1fd07ab
commit
42624e9e48
3 changed files with 24 additions and 9 deletions
|
@ -12,6 +12,17 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
|
||||
<header>
|
||||
{% if extra_siteurls %}
|
||||
<div class="translations">
|
||||
<a class="active" href="{{ articles_page.url }}">{{ DEFAULT_LANG }}</a>
|
||||
{% for lang, url in extra_siteurls.items() %}
|
||||
<a href="{{ url }}/{{ articles_page.url }}">{{ lang }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</header>
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
<article>
|
||||
<header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue