otmp_site/templates/section.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

26 lines
No EOL
845 B
HTML

{% extends "base.html" %}
{% block header %}
<h2>{{ section.title }}</h2>
{% endblock header %}
{% block content %}
{{ section.content | safe }}
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
<ul>
{% for page in pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
<br />
{{ page.description }}
</li>
{% endfor %}
</ul>
{% if paginator %}
<p>{% if paginator.previous %}<a href="{{ paginator.first }}">&lt;&lt; First</a> <a href="{{ paginator.previous }}">&lt; Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next &gt;</a> <a href="{{ paginator.last }}">Last &gt;&gt;</a>{% endif %}</p>
{% endif %}
{% endblock content %}