fix: invert the buttons on the button navigation of an article

pull/2/head
Nicolas Doby 2022-11-21 10:46:53 +01:00
parent fef9c11854
commit ea985950b6
2 changed files with 8 additions and 8 deletions

View File

@ -28,15 +28,15 @@ templateClass: tmpl-post
{%- if nextArticle or previousArticle %}
<nav class="post-nav">
<ul>
{%- 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 class="icon" aria-hidden="true">«</span>
<span>{{ nextArticle.data.title }}</span>
</a>
</li>{% endif %}
{%- if previousArticle %}<li class="previous">
<a href="{{ previousArticle.url }}" title="Article précédent">
<span>{{ previousArticle.data.title }}</span>
<span class="icon" aria-hidden="true">»</span>
</a>
</li>{% endif %}

View File

@ -340,12 +340,12 @@ h1 + .post-metadata {
}
.previous {
.icon {
margin-right: 2rem;
margin-left: 2rem;
}
}
.next {
.icon {
margin-left: 2rem;
margin-right: 2rem;
}
}
}