Fix order in blog previous and next buttons (#17)
This patch resolves #16 and switches order of the next and previos buttons in the blog section when pagination is enabled.
This commit is contained in:
parent
b748d63fe6
commit
c133a9e82e
1 changed files with 5 additions and 7 deletions
|
@ -22,14 +22,12 @@
|
||||||
<i class="fa fa-calendar"></i>
|
<i class="fa fa-calendar"></i>
|
||||||
{{ page.date|date("d") }}, {{ page.date|date("M") }}
|
{{ page.date|date("d") }}, {{ page.date|date("M") }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{% if page.header.author %}
|
{% if page.header.author %}
|
||||||
<span class="list-blog-author">
|
<span class="list-blog-author">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
{{ page.header.author }}
|
{{ page.header.author }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.taxonomy.tag %}
|
{% if page.taxonomy.tag %}
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
<i class="fa fa-tag"></i>
|
<i class="fa fa-tag"></i>
|
||||||
|
@ -62,12 +60,12 @@
|
||||||
{% if show_prev_next %}
|
{% if show_prev_next %}
|
||||||
|
|
||||||
<p class="prev-next">
|
<p class="prev-next">
|
||||||
{% if not page.isFirst %}
|
{% if not page.isLast %}
|
||||||
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> Next Post</a>
|
<a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> Previous Post</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not page.isLast %}
|
{% if not page.isFirst %}
|
||||||
<a class="button" href="{{ page.prevSibling.url }}">Previous Post <i class="fa fa-chevron-right"></i></a>
|
<a class="button" href="{{ page.nextSibling.url }}">Next Post <i class="fa fa-chevron-right"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue