2020-03-29 20:44:15 +02:00
|
|
|
{% extends "index.html" %}
|
|
|
|
|
2020-03-30 20:35:04 +02:00
|
|
|
{% block title %}{{ section.title }}{{ config.extra.title }}{% endblock %}
|
2020-03-29 20:44:15 +02:00
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
<section class="h-feed">
|
2020-03-29 22:08:09 +02:00
|
|
|
<h1><span class="p-name">{{ section.title }}</span>{% if paginator and paginator.number_pagers > 1 %} ({{ paginator.current_index }}/{{ paginator.number_pagers }}){% endif %}</h1>
|
2020-03-29 20:44:15 +02:00
|
|
|
<a class="u-url" hidden aria-hidden=true href="{{ section.permalink }}">Permalink</a>
|
2020-03-29 22:08:09 +02:00
|
|
|
{% set pages = paginator.pages| default(value=section.pages) %}
|
|
|
|
{% for page in pages %}
|
2020-03-29 20:44:15 +02:00
|
|
|
<article>
|
|
|
|
<div>
|
|
|
|
<a class="u-url" href="{{ page.permalink }}"><h2>{{ page.title }}</h2></a>
|
2020-03-30 01:50:24 +02:00
|
|
|
{%- if page.date -%}<time class="dt-published" datetime="{{ page.date }}">📅 {{ page.date | date(format=trans(key="dateFormat", lang=lang)) }}</time>{%- endif -%}
|
2020-03-29 20:44:15 +02:00
|
|
|
</div>
|
|
|
|
{% if page.summary %}
|
|
|
|
<div class="p-summary e-content">
|
|
|
|
{{ page.summary | markdown | safe }}
|
2020-03-30 01:50:24 +02:00
|
|
|
<a class="read-more" href="{{ page.permalink }}">--> {{ trans(key="readmore", lang=lang) }} <--</a>
|
2020-03-29 20:44:15 +02:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="e-content">
|
|
|
|
{{ page.content | markdown | safe }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
2020-03-29 22:08:09 +02:00
|
|
|
{% if paginator and paginator.number_pagers > 1 %}
|
|
|
|
<aside class="pagination">
|
|
|
|
{% if paginator.previous %}
|
2020-03-30 01:50:24 +02:00
|
|
|
<a href="{{ paginator.previous }}"><-- {{ trans(key="previousPage", lang=lang) }}</a>
|
2020-03-29 22:08:09 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if paginator.next %}
|
2020-03-30 01:50:24 +02:00
|
|
|
<a href="{{ paginator.next }}">{{ trans(key="nextPage", lang=lang) }} --></a>
|
2020-03-29 22:08:09 +02:00
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
2020-03-29 20:44:15 +02:00
|
|
|
{% endblock %}
|