mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
fix links for next and previous articles
This commit is contained in:
parent
072eafc751
commit
b1c8937fc9
9 changed files with 69 additions and 52 deletions
|
@ -94,15 +94,17 @@
|
|||
<hr />
|
||||
<div class="article-navigation">
|
||||
{% if article.previous %}
|
||||
<a href="{{ all_articles[article.previous].slug_with_year }}" class="previous-article">
|
||||
<a href="/{{ all_articles[article.previous].slug_with_year }}" class="previous-article">
|
||||
Article précédent:
|
||||
<div class="next-acticle-title">{{all_articles[article.previous].title}}</div>
|
||||
<div class="next-acticle-title">
|
||||
{{all_articles[article.previous].annee}} {{all_articles[article.previous].title}}</div>
|
||||
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if article.next %}
|
||||
<a href="{{ article.next.slug_with_year }}" class="next-article">Article suivant:
|
||||
<div class="next-acticle-title">{{article.next.title}}</div>
|
||||
<a href="/{{ all_articles[article.next].slug_with_year }}" class="next-article">Article suivant:
|
||||
<div class="next-acticle-title">{{all_articles[article.next].annee}}
|
||||
{{all_articles[article.next].title}}</div>
|
||||
|
||||
</a>
|
||||
<!-- // TODO corriger les précédents et suivants, ajouter le titre -->
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue