Skip to content

Instantly share code, notes, and snippets.

@Agressiva86
Created December 2, 2019 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Agressiva86/6049b9b82467564d5d7e8dcc47f37c72 to your computer and use it in GitHub Desktop.
Save Agressiva86/6049b9b82467564d5d7e8dcc47f37c72 to your computer and use it in GitHub Desktop.
<div class="box-pagination">
<div class="row align-middle">
<div class="large-6 medium-10 small-11 columns">
<ul class="pages">
{% for page in posts.pagination.pages %}
<li>
{% if page.link %}
<a href="{{page.link}}" class="{{page.class}}">{{page.title}}</a>
{% else %}
<span class="{{page.class}}">{{page.title}}</span>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="large-6 medium-10 small-11 columns text-center large-text-right">
{% if posts.pagination.prev %}
<a href="{{posts.pagination.prev.link}}"
class="prev {{posts.pagination.prev.link|length ? '' : 'invisible'}}">Prev</a>
{% endif %}
{% if posts.pagination.next %}
<a href="{{posts.pagination.next.link}}"
class="next {{posts.pagination.next.link|length ? '' : 'invisible'}}">Next</a>
{% endif %}
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment