sv/en toggle
This commit is contained in:
parent
20d21d09a4
commit
d5c1fe2d60
9 changed files with 168 additions and 41 deletions
22
templates/page.html
Normal file
22
templates/page.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% import "_macros.html" as macros %}
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block title %}{{ page.title }} | {{ super() }} {% endblock title %}
|
||||
|
||||
|
||||
{% block header %}
|
||||
<header class="box-shadow">
|
||||
{% if lang =="en" %}
|
||||
{% set path = [""] | concat(with=page.components) | join(sep="/") %}
|
||||
{% else %}
|
||||
{% set path = [""] | concat(with=page.components | slice(start=1)) | join(sep="/") %}
|
||||
{% endif %}
|
||||
{{ macros::render_header(path=path) }}
|
||||
</header>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="heading-text">{{ page.description }}</div>
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue