sv/en toggle
This commit is contained in:
parent
20d21d09a4
commit
d5c1fe2d60
9 changed files with 168 additions and 41 deletions
|
|
@ -5,7 +5,13 @@
|
|||
|
||||
{% block header %}
|
||||
<header class="box-shadow">
|
||||
{{ macros::render_header() }}
|
||||
{% if lang =="en" %}
|
||||
{% set path = [""] | concat(with=section.components) | join(sep="/") %}
|
||||
{% else %}
|
||||
{% set path = [""] | concat(with=section.components | slice(start=1)) | join(sep="/") %}
|
||||
{% endif %}
|
||||
|
||||
{{ macros::render_header(path=path) }}
|
||||
</header>
|
||||
{% endblock header %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue