2023-03-31 21:59:07 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import 'macros/card.html' as macro_card -%}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="columns is-multiline mt-6">
|
2023-04-08 19:43:40 +02:00
|
|
|
<div class="plus-articles button is-link is-light is-medium has-text-weight-bold">
|
|
|
|
{{ term.name }}
|
|
|
|
</div>
|
|
|
|
{% for page in paginator.pages %}
|
|
|
|
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2023-03-31 21:59:07 +02:00
|
|
|
|
2023-04-08 19:43:40 +02:00
|
|
|
<nav class="pagination is-rounded is-centered" role="navigation" aria-label="pagination">
|
|
|
|
<ul class="pagination-list">
|
|
|
|
{% if paginator.current_index > 2 %}
|
|
|
|
<li><a href="{{ paginator.first }}" class="pagination-link" aria-label="Page 1">1</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if paginator.current_index > 3 %}
|
|
|
|
<li><span class="pagination-ellipsis">…</span></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if paginator.previous %}
|
|
|
|
<li><a class="pagination-link" href="{{ paginator.previous }}" aria-label="Page {{ paginator.current_index -1 }}">{{ paginator.current_index - 1 }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
<li><a class="pagination-link is-current" aria-label="Page {{ paginator.current_index }}" aria-current="page">{{ paginator.current_index }}</a></li>
|
|
|
|
{% if paginator.next %}
|
|
|
|
<li><a class="pagination-link" href="{{ paginator.next }}" aria-label="Page {{ paginator.current_index +1 }}">{{ paginator.current_index + 1 }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if paginator.current_index + 2 < paginator.number_pagers %}
|
|
|
|
<li><span class="pagination-ellipsis">…</span></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if paginator.current_index < paginator.number_pagers - 1 %}
|
|
|
|
<li><a href="{{ paginator.last }}" class="pagination-link" aria-label="Page {{ paginator.number_pagers }}">{{ paginator.number_pagers }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2023-03-31 21:59:07 +02:00
|
|
|
{% endblock content %}
|