2022-10-29 10:39:10 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block main_content %}
|
|
|
|
{% if section.extra.section_path -%}
|
|
|
|
{% set section = get_section(path=section.extra.section_path) %}
|
|
|
|
{% endif -%}
|
|
|
|
|
2023-02-06 12:09:29 +01:00
|
|
|
<h2>{{ section.title }}</h2>
|
2022-10-29 10:39:10 +02:00
|
|
|
|
|
|
|
<main>
|
|
|
|
{%- if paginator %}
|
|
|
|
{%- set show_pages = paginator.pages -%}
|
|
|
|
{% else %}
|
|
|
|
{%- set show_pages = section.pages -%}
|
|
|
|
{% endif -%}
|
|
|
|
|
|
|
|
{{ post_macros::cards_posts(pages=show_pages) }}
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{% if paginator %}
|
|
|
|
<ul class="pagination">
|
|
|
|
{% if paginator.previous %}
|
|
|
|
<span class="page-item page-prev">
|
|
|
|
<a href={{ paginator.previous }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if paginator.next %}
|
|
|
|
<span class="page-item page-next">
|
|
|
|
<a href={{ paginator.next }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2023-02-06 12:09:29 +01:00
|
|
|
{% endblock main_content %}
|