feat: review the bottom navigation

This commit is contained in:
2022-11-20 14:52:05 +01:00
parent 0523e7ae12
commit 23f016ecc3
2 changed files with 46 additions and 3 deletions

View File

@@ -28,8 +28,18 @@ templateClass: tmpl-post
{%- if nextArticle or previousArticle %}
<nav class="post-nav">
<ul>
{%- if previousArticle %}<li class="previous">Précédent : <a href="{{ previousArticle.url }}">{{ previousArticle.data.title }}</a></li>{% endif %}
{%- if nextArticle %}<li class="next">Suivant : <a href="{{ nextArticle.url }}">{{ nextArticle.data.title }}</a></li>{% endif %}
{%- if previousArticle %}<li class="previous">
<a href="{{ previousArticle.url }}" title="Article précédent">
<span class="icon" aria-hidden="true">«</span>
<span>{{ previousArticle.data.title }}</span>
</a>
</li>{% endif %}
{%- if nextArticle %}<li class="next">
<a href="{{ nextArticle.url }}" title="Article suivant">
<span>{{ nextArticle.data.title }}</span>
<span class="icon" aria-hidden="true">»</span>
</a>
</li>{% endif %}
</ul>
</nav>
{%- endif %}