mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-14 03:29:23 +01:00
43 lines
1,019 B
HTML
43 lines
1,019 B
HTML
{% import "macros/marginals.html" as marginals %}
|
|
{% import "macros/post.html" as post %}
|
|
<!DOCTYPE html>
|
|
<html lang="{% if page %}{{ page.lang }}{% else %}{{ config.default_language }}{% endif %}">
|
|
<head>
|
|
{% include "head.html" %}
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<header>
|
|
{% set current_lang = config.default_language %}
|
|
{% if page %}
|
|
{% set current_lang = page.lang %}
|
|
{% elif section %}
|
|
{% set current_lang = section.lang %}
|
|
{% endif %}
|
|
{{ marginals::navbar(current_lang=current_lang) }}
|
|
</header>
|
|
<main>
|
|
{% block pre_content %}
|
|
{% endblock pre_content %}
|
|
<article>
|
|
{% block content %}
|
|
<h1>{{ page.title }}</h1>
|
|
|
|
{% if page.toc and page.extra.toc %}
|
|
{{ post::toc(toc=page.toc) }}
|
|
{% endif %}
|
|
|
|
{{ page.content | safe }}
|
|
|
|
{% if page.taxonomies.tags %}
|
|
{{ post::tags(tags=page.taxonomies.tags) }}
|
|
{% endif %}
|
|
{% endblock content %}
|
|
</article>
|
|
</main>
|
|
<footer>
|
|
{{ marginals::footer() }}
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|