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
|
@ -155,6 +155,18 @@ main {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
max-width: 760px;
|
||||||
|
|
||||||
|
.translations {
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
.active {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
article {
|
article {
|
||||||
margin: 0 8% 2% 8%;
|
margin: 0 8% 2% 8%;
|
||||||
|
|
||||||
|
@ -167,14 +179,6 @@ main {
|
||||||
color: @header-text-color;
|
color: @header-text-color;
|
||||||
font-size: 0.86em;
|
font-size: 0.86em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.translations {
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
.active {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code, kbd, samp, pre {
|
code, kbd, samp, pre {
|
||||||
|
|
2
static/stylesheet/style.min.css
vendored
2
static/stylesheet/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -12,6 +12,17 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% 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 %}
|
{% for article in articles_page.object_list %}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
|
|
Loading…
Add table
Reference in a new issue