website/templates/index.html

26 lines
558 B
HTML
Raw Permalink Normal View History

2022-09-19 16:41:09 +00:00
{% extends "base.html" %}
{% block title %}{{ config.extra.sitename|safe }}{% endblock title %}
{% block head %}
{% if section.extra.katex %}{{macros::katex()}}{% endif %}
{% endblock head %}
{% block body %}
<span id="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>
<h1>tuxmain</h1>
<main>
{{section.content | safe}}
</main>
{% endblock body %}