You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB
HTML

{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="cs">
<head>
<title>
{% block title %}
{% if current_path != "/" %}
{{ config.title }} &ndash;
{% if section.title %}
{{ section.title }}
{% elif page.title %}
{{ page.title }}
{% endif %}
{% else %}
{{ config.title }}
{% endif %}
{% endblock title %}
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="darkreader-lock">
<link href="/style.css" rel="stylesheet">
</head>
<body>
<header>
<a class="img" href="/"></a>
<nav>
{% for item in config.extra.nav_items %}
<a href="{{ item.path }}"
{% if item.path == current_path and item.path != "/" %}
class="active"
{% endif %}
>{{ item.name }}</a>
{% endfor %}
</nav>
</header>
<main>
{% block content %}
<section>
{% if section %}
{{ section.content | safe }}
{% elif page %}
{{ page.content | safe }}
{% endif %}
</section>
{% endblock content %}
</main>
<footer>
Build time: {{ now() | date(format="%Y-%m-%d %H:%M") }}
{%- if config.extra.git -%}
, <a href="{{ config.extra.git }}">Source</a>
{% endif %}
</footer>
</body>
</html>