{% import "macros.html" as macros %}
{% for lk, lv in config.extra.tr %}
	{% if lk == lang %}
		{% set_global tr = lv %}
	{% endif %}
{% endfor %}
<!doctype html>
<html lang="{{lang}}">
	<head>
		<meta charset="utf-8"/>
		<title>{% block title %}{% endblock title %}</title>
		<link rel="stylesheet" href="/css/style.css"/>
		<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
		<link rel="alternate" type="application/atom+xml" title="Atom" href="/{{macros::langurl()}}atom.xml"/>
		<meta name="viewport" content="width=device-width"/>
		<meta name="author" content="Pascal Engélibert"/>
		<link type="text/plain" rel="author" href="/humans.txt"/>
		{% block head %}{% endblock head %}
	</head>
	<body>
		<header>
			<a class="header-site-title" href="/{{macros::langurl()}}">{{ tr.sitename }}</a>
			<a class="header-link" href="/{{macros::langurl()}}blog">{{ tr.header_blog }}</a>
			<a class="header-link" href="/{{macros::langurl()}}links">{{ tr.header_links }}</a>
			{% block header %}{% endblock header %}
			<div style="clear:both"></div>
		</header>
		<main>
			{% block main_begin %}{% endblock main_begin %}
			{% if manual_page %}
				{% block main %}{% endblock main %}
			{% else %}
				<div class="page">
					{% block main %}{% endblock main %}
				</div>
			{% endif %}
		</main>
		<footer>

			<div class="footer-wrapper">
				<div class="footer-pane">
					<div class="footer-icons">
						<a rel="author" href="https://toot.aquilenet.fr/@tuxmain" title="Mastodon" target="_blank"><img alt="Mastodon" src="/img/mastodon-purple.svg" style="height:32px"/></a>
						<a href="/{{macros::langurl()}}atom.xml" title="☭RSS/Atom"><img alt="☭RSS/Atom" src="/img/rss-gradient.svg" style="height:32px"/></a>
						<a href="https://liberapay.com/tuxmain/donate" title="Liberapay"><img alt="Liberapay" src="/img/liberapay-donate.svg"/></a>
					</div>
					<p>
						Electronic missive:<br/>
						tuxmain ât zettascript ðøt org
					</p>
				</div>
				<div class="footer-pane">
					<p>
						Hosted in Bordeaux, France.<br/>
						🦀 Site generated with <a href="https://www.getzola.org/">Zola</a>.<br/>
						<a href="https://git.txmn.tk/tuxmain/website">Source code</a> under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
					</p>
				</div>
			</div>
		</footer>
	</body>
</html>
