31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ title or _(page.title) }} · {{ _('Help') }} · {{ appearance.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="help-layout">
|
|
<nav class="help-nav card" aria-label="{{ _('Documentation') }}">
|
|
<h2>{{ _('Help') }}</h2>
|
|
<ul>
|
|
{% for item in pages %}
|
|
<li><a href="{{ item.url }}"{% if item.slug == page.slug %} aria-current="page"{% endif %}>{{ _(item.title) }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
<article class="doc card">
|
|
{% if current_language() != 'de' %}<p class="alert info" lang="{{ current_language() }}">{{ _('The documentation is only available in German.') }}</p>{% endif %}
|
|
<div lang="de">
|
|
<h1>{{ title or _(page.title) }}</h1>
|
|
{% if toc %}
|
|
<nav class="doc-toc" aria-label="{{ _('Contents') }}">
|
|
<p class="doc-toc-title">{{ _('Contents') }}</p>
|
|
<ul>
|
|
{% for heading in toc %}<li><a href="#{{ heading.anchor }}">{{ heading.text }}</a></li>{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|
|
{{ body }}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
{% endblock %}
|