Create template for older / newer pagination
This commit is contained in:
parent
d59e8dbc15
commit
804126d745
|
@ -0,0 +1,13 @@
|
|||
<p class="center-text">
|
||||
{% if pagination.href.previous %}
|
||||
<a href=" {{ pagination.href.previous }}">Newer</a>
|
||||
{% else %}
|
||||
Newer
|
||||
{% endif %}
|
||||
/
|
||||
{% if pagination.href.next %}
|
||||
<a href=" {{ pagination.href.next }}">Older</a>
|
||||
{% else %}
|
||||
Older
|
||||
{% endif %}
|
||||
</p>
|
|
@ -31,16 +31,4 @@ permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagin
|
|||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p class="center-text">
|
||||
{% if pagination.href.previous %}
|
||||
<a href=" {{ pagination.href.previous }}">Newer</a>
|
||||
{% else %}
|
||||
Newer
|
||||
{% endif %}
|
||||
/
|
||||
{% if pagination.href.next %}
|
||||
<a href=" {{ pagination.href.next }}">Older</a>
|
||||
{% else %}
|
||||
Older
|
||||
{% endif %}
|
||||
</p>
|
||||
{% include "global/pagination-oldnew.njk" %}
|
||||
|
|
|
@ -22,16 +22,4 @@ permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagin
|
|||
{%- endfor %}
|
||||
</article>
|
||||
|
||||
<p class="center-text">
|
||||
{% if pagination.href.previous %}
|
||||
<a href=" {{ pagination.href.previous }}">Newer</a>
|
||||
{% else %}
|
||||
Newer
|
||||
{% endif %}
|
||||
/
|
||||
{% if pagination.href.next %}
|
||||
<a href=" {{ pagination.href.next }}">Older</a>
|
||||
{% else %}
|
||||
Older
|
||||
{% endif %}
|
||||
</p>
|
||||
{% include "global/pagination-oldnew.njk" %}
|
||||
|
|
Loading…
Reference in New Issue