xmpp-site/templates/main.jinja

56 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

<!doctype html>
<html lang="en">
{% block head %}
<head>
2021-08-29 19:42:37 +00:00
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />
2021-08-29 19:42:37 +00:00
<link rel="stylesheet" type="text/css" href="/resources/main.scss" />
<title>{{ title or claim }}</title>
</head>
{% endblock %}
{% block body %}
<body>
<div id="header-show">
<a id="header-hide" class="burger show" href="#header-show">Open menu</a>
<a class="burger hide" href="#header-hide">Close menu</a>
</div>
2021-09-07 11:58:34 +00:00
<header>
<a id="logo" href="/">
<object id="logo" data="/resources/logo.svg"></object>
</a>
2021-09-07 11:58:34 +00:00
{% block menu %}{{ menu }}{% endblock %}
{% if self.header() %}
{% block header %}
{% endblock %}
{% endif %}
</header>
2021-08-29 19:42:37 +00:00
<main>
{% if messages|length %}
{% block messages %}
<ul class="messages">
{% for category, message in messages %}
<li class="{{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endblock %}
{% endif %}
2021-08-29 19:42:37 +00:00
{% block content %}
<main>
{{ content }}
</main>
2021-08-29 19:42:37 +00:00
{% endblock %}
{% block postfix %}{% endblock %}
<footer>
<span>Feel free to ask for support at {{ support_address }}.</span>
</footer>
2021-09-05 23:01:09 +00:00
</main>
</body>
{% endblock %}
</html>