{% extends "base.html" %}

{% block title %}{{ tr.sitename|safe }}{% endblock title %}

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

{% block header %}
<span class="langs">
	{{lang}} &#8211;
	
	{% for t in section.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 %}
{{section.content | safe}}
{% endblock main %}
