{% extends "base.html" %}

{% block title %}{{page.title|safe}} &#8211; {{ tr.sitename|safe }}{% endblock title %}

{% block head %}
{% if page.extra.katex %}{{macros::katex()}}{% endif %}
{% endblock head %}

{% block header %}
<span class="langs">
	{{lang}} &#8211;
	
	{% for t in page.translations %}
		{% if t.lang|default(value=config.default_language) != lang %}
			<a href="{{t.permalink|safe}}">{{t.lang|default(value=config.default_language)}}</a>
		{% endif %}
	{% endfor %}
</span>
{% endblock header %}

{% block main %}
<h1>{{page.title | safe}}</h1>

{{page.content | safe}}

{% endblock main %}
