mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-22 15:34:50 +01:00
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>{{ section.title }}</h1>
|
|
|
|
{{ section.content | safe }}
|
|
|
|
{% if paginator %}
|
|
{% set pages = paginator.pages %}
|
|
{% else %}
|
|
{% set pages = section.pages %}
|
|
{% endif %}
|
|
|
|
<ul class="titleList">
|
|
{% 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 }}{% if config.extra.show_date_paginator and config.extra.show_date_paginator == true %} <span class="contentDate">{{ page.date | date(format=datefmt) }}</span>{% endif %}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% if paginator %}
|
|
<div class="metaData">{% if paginator.previous %}<a href="{{ paginator.first }}">⥶</a> <a href="{{ paginator.previous }}"></a>{% endif %} {{ paginator.current_index }} / {{ paginator.number_pagers }} {% if paginator.next %}<a href="{{ paginator.next }}"></a> <a href="{{ paginator.last }}"></a>{% endif %}</div>
|
|
{% endif %}
|
|
{% endblock content %}
|