2024-03-13 18:00:24 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
{% for article in articles_page.object_list %}
|
|
|
|
<article>
|
2024-03-24 13:24:33 +01:00
|
|
|
<h2>
|
2024-03-13 18:00:24 +01:00
|
|
|
{{ article.title }}
|
2024-03-24 13:24:33 +01:00
|
|
|
</h2>
|
2024-03-13 18:00:24 +01:00
|
|
|
<p>
|
|
|
|
{{ article.subtitle }}<br/>
|
|
|
|
{{ article.description }} <br/>
|
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Lire la suite…</a>
|
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock content %}
|
|
|
|
|
|
|
|
{% if articles_page.has_other_pages() %}
|
|
|
|
{% if DEFAULT_PAGINATION %}
|
|
|
|
{% block pagination %}
|
|
|
|
{% set first_page = articles_paginator.page(1) %}
|
|
|
|
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
|
|
|
{% if articles_paginator.num_pages >1 %}
|
|
|
|
<nav class="pagination">
|
|
|
|
<a href="{{ SITEURL }}/{{ first_page.url }}"
|
|
|
|
{%- if articles_page.has_previous() %}
|
|
|
|
{%- else %}class="hidden"{% endif %}>
|
|
|
|
<i class="fa fa-angle-double-left"></i></a>
|
|
|
|
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}"
|
|
|
|
{%- if articles_page.has_previous() %}
|
|
|
|
{%- else %}class="hidden"{% endif %}>
|
|
|
|
<i class="fa fa-angle-left"></i></a>
|
|
|
|
<p><strong>{{ category }}{{ tag }}</strong> | {{ articles_page.number }} de {{ articles_paginator.num_pages }}</p>
|
|
|
|
<a href="{{ SITEURL }}/{{ articles_next_page.url }}"
|
|
|
|
{%- if articles_page.has_next() %}
|
|
|
|
{%- else %}class="hidden"{% endif %}>
|
|
|
|
<i class="fa fa-angle-right"></i></a>
|
|
|
|
<a href="{{ SITEURL }}/{{ last_page.url }}"
|
|
|
|
{%- if articles_page.has_next() %}
|
|
|
|
{%- else %}class="hidden"{% endif %}>
|
|
|
|
<i class="fa fa-angle-double-right"></i></a>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|