otmp_site/templates/page.html
Awiteb fd51da590e
chore: Make the titles h2 rather than h1
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-01 17:06:57 +03:00

50 lines
No EOL
1.3 KiB
HTML

{% extends "base.html" %}
{% block header %}
<h2>{{ page.title }}</h2>
{% endblock header %}
{% block content %}
{% if page.toc and page.extra.add_toc %}
{% if page.extra.lang == "ar-SA" %}جدول المحتويات{% else %}Table of Contents{% endif %}
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{{ page.content | safe }}
{% endblock content %}
{% block footer %}
<p class="taxonomies">
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
<a href="/tags/{{ tag | slugify }}">#{{ tag }}</a>
{% endfor %}
{% if page.taxonomies.categories %}
{% for category in page.taxonomies.categories %}
<a href="/categories/{{ category | slugify }}">+{{ category }}</a>
{% endfor %}
{% endif %}
{% if page.taxonomies.contexts %}
{% for context in page.taxonomies.contexts %}
<a href="/contexts/{{ context | slugify }}">@{{ context }}</a>
{% endfor %}
{% endif %}
{% endif %}
</p>
{% endblock footer %}