2021-01-28 22:17:05 +01:00
|
|
|
{% macro listArticles(objIt) -%}
|
|
|
|
{% for art in objIt %}
|
|
|
|
<div class="pre-art">
|
|
|
|
<p class="infos-art">Par
|
|
|
|
{% for author in art.authors %}
|
|
|
|
<a href="{{ SITEURL }}/{{ author.url }}" class="author">{{ author }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
dans <a href="{{ SITEURL }}/{{ art.category.url }}" class="category">{{ art.category }}</a> le {{ art.date.strftime('%d/%m/%Y') }}.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<h2><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></h2>
|
2024-12-24 15:59:38 +01:00
|
|
|
|
2021-07-02 10:45:59 +02:00
|
|
|
<div class="tags">
|
|
|
|
{% for tag in art.tags %}
|
2021-07-02 10:51:32 +02:00
|
|
|
<a href="{{ SITEURL }}/tag/{{ tag }}">{{ tag }}</a>
|
2021-07-02 10:45:59 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-01-28 22:17:05 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{%- endmacro %}
|
2021-01-31 12:09:36 +01:00
|
|
|
|
|
|
|
{% macro paginationArt(prev, next) -%}
|
|
|
|
<div id="base-pagenation">
|
|
|
|
{% if prev is not none %}
|
|
|
|
<p id="base-prev"><a href="{{ SITEURL }}/{{ prev.url }}">Articles récents</a></p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if next is not none %}
|
|
|
|
<p id="base-next"><a href="{{ SITEURL }}/{{ next.url }}">Ancients articles</a></p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{%- endmacro %}
|