mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-14 03:29:23 +01:00
37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
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">
|
|
{%- for page in pages -%}
|
|
{%- if page.extra.date_format.list -%}
|
|
{%- set datefmt = page.extra.date_format.list -%}
|
|
{%- elif section.extra.date_format.list -%}
|
|
{%- set datefmt = section.extra.date_format.list -%}
|
|
{%- elif config.extra.date_format.list -%}
|
|
{%- set datefmt = config.extra.date_format.list -%}
|
|
{%- else -%}
|
|
{% set datefmt = " @ %Y-%m-%dT%H:%M:%S%Z" %}
|
|
{%- endif -%}
|
|
<li><a href="{{ page.permalink | safe }}">{{ page.title }}
|
|
{%- if section.extra.show_subtitle and section.extra.show_subtitle == true and page.extra.subtitle -%}
|
|
<span class="content-subtitle"> - {{ page.extra.subtitle }}</span>
|
|
{%- endif -%}
|
|
<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> <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 %}
|