Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jekyll page.next and page.previous. See this gist for style: https://gist.github.com/shankariyerr/5d1af3c4b24acb4d06d971c63dea988a
<div class="pagination">
<div id="post-nav">
{% if page.previous.url %}
<a class="pagination-item older" href="{{page.previous.url}}">&laquo; Previous</a>
{% endif %}
{% if page.next.url %}
<a class="pagination-item newer" href="{{page.next.url}}">Next &raquo;</a>
{% endif %}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.