2022-12-03 20:01:01 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block header %}
|
2024-06-01 16:06:57 +02:00
|
|
|
<h2>{{ page.title }}</h2>
|
2022-12-03 20:01:01 +01:00
|
|
|
{% endblock header %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if page.toc and page.extra.add_toc %}
|
2024-06-01 15:50:58 +02:00
|
|
|
{% if page.extra.lang == "ar-SA" %}جدول المحتويات{% else %}Table of Contents{% endif %}
|
2022-12-03 20:01:01 +01:00
|
|
|
<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 }}
|
2022-12-05 13:48:27 +01:00
|
|
|
{% 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 %}
|
2023-02-10 18:56:24 +01:00
|
|
|
{% if page.taxonomies.categories %}
|
2022-12-05 13:48:27 +01:00
|
|
|
{% for category in page.taxonomies.categories %}
|
|
|
|
<a href="/categories/{{ category | slugify }}">+{{ category }}</a>
|
|
|
|
{% endfor %}
|
2023-02-10 18:56:24 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if page.taxonomies.contexts %}
|
2022-12-05 13:48:27 +01:00
|
|
|
{% for context in page.taxonomies.contexts %}
|
|
|
|
<a href="/contexts/{{ context | slugify }}">@{{ context }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2023-02-10 18:56:24 +01:00
|
|
|
{% endif %}
|
2022-12-05 13:48:27 +01:00
|
|
|
</p>
|
|
|
|
{% endblock footer %}
|