Added next and previous page links
This commit is contained in:
parent
3a6dc53531
commit
c58414f975
|
@ -19,3 +19,14 @@ use:
|
||||||
<a href="{{ post.url }}">Read more →</a>
|
<a href="{{ post.url }}">Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if page.pagination.previous_page or page.pagination.next_page %}
|
||||||
|
<nav>
|
||||||
|
{% if page.pagination.previous_page %}
|
||||||
|
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if page.pagination.next_page %}
|
||||||
|
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
|
||||||
|
{% endif %}
|
||||||
|
</nav>
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue