rangement des articles sur l'index gemini en date décroissante

This commit is contained in:
Tykayn 2025-02-28 19:01:42 +01:00 committed by tykayn
parent dbbae888f4
commit 6050907dc9
2 changed files with 62 additions and 48 deletions

View file

@ -115,10 +115,14 @@
{% if articles_others %}
<div class="more-articles">
<p>Y'en a un peu plus, je vous le mets...</p>
<h2>Y'en a un peu plus, je vous le mets...</h2>
{% for article in articles_others %}
{% if loop.first or article.annee != articles_others[loop.index0 - 1].annee %}
<div class="more-articles">
<h3>{{article.annee}}</h3>
</div>
{% endif %}
{% for article in articles_others %}
<article class="more-content">
<div class="article-title">
@ -135,9 +139,10 @@
</div>
<div class="column">
<a href="/{{ article.slug_with_year }}">
<span class="article-date-inline">
<!-- <span class="article-date-inline">
{{article.annee}}
</span> {{ article.title }}
</span> -->
{{ article.title }}
</a>
</div>
</div>
@ -145,7 +150,8 @@
</div>
</article>
{% endfor %}
</div>
{% endif %}
</main>
<footer class="site-footer has-top-divider">
<div class="container">