fix links for next and previous articles

This commit is contained in:
Tykayn 2025-02-20 16:30:08 +01:00 committed by tykayn
parent 072eafc751
commit b1c8937fc9
9 changed files with 69 additions and 52 deletions

View file

@ -101,20 +101,39 @@
</article>
{% endfor %}
<hr />
Articles passés:
{{articles_others|length}}
{% if articles_others %}
<div class="more-articles">
<p>Y'en a un peu plus, je vous le mets...</p>
</div>
{% endif %}
{% for article in articles_others %}
<article class="content">
<article class="more-content">
<div class="article-title">
<a href="{{ article.slug_with_year }}">
<span class="article-date-inline">
{{article.date}}
</span> {{ article.title }}
</a>
<div class="columns">
<div class="column">
{% if article.first_picture_url %}
<div class="first-picture-container">
<a href="{{ article.slug_with_year }}">
<img class="first-picture" src="{{article.first_picture_url}}" />
</a>
</div>
{% endif %}
</div>
<div class="column">
<a href="/{{ article.slug_with_year }}">
<span class="article-date-inline">
{{article.annee}}
</span> {{ article.title }}
</a>
</div>
</div>
</div>
</article>
{% endfor %}