friendenstein/templates/section.html
2024-01-02 12:18:18 +01:00

28 lines
991 B
HTML

{% extends "page.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
{{ section.content | safe }}
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
<ul class="title-list">
{% if config.extra.date_format.list %}
{% set datefmt = config.extra.date_format.list %}
{% else %}
{% set datefmt = " @ %Y-%m-%dT%H:%M:%S%Z" %}
{% endif %}
{% for page in pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}<span class="content-date">{{ page.date | date(format=datefmt) }}</span></a></li>
{% endfor %}
</ul>
{% if paginator %}
<div class="metadata">{% if paginator.previous %}<a href="{{ paginator.first }}"></a> &nbsp; <a href="{{ paginator.previous }}"></a>{% endif %} &nbsp; {{ paginator.current_index }} / {{ paginator.number_pagers }} &nbsp; {% if paginator.next %}<a href="{{ paginator.next }}"></a> &nbsp; <a href="{{ paginator.last }}"></a>{% endif %}</div>
{% endif %}
{% endblock content %}