friendenstein/templates/page.html

48 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2024-01-02 12:18:18 +01:00
{% 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>
2024-01-19 19:44:44 +01:00
{%- if page.extra.redirect -%}
<meta http-equiv="Refresh" content="0; url='{{ page.extra.redirect }}'" />
{%- endif -%}
2024-01-02 12:18:18 +01:00
{% block pre_content %}
{% endblock pre_content %}
<article>
{% block content %}
<h1>{{ page.title }}</h1>
2023-07-04 02:37:44 +02:00
2024-01-02 12:18:18 +01:00
{% 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>