Created
June 13, 2018 11:39
-
-
Save devalexandre/63282f3e0e23a05430ffad43639ec772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if dados.lastPage > 1 %} | |
<nav aria-label="Page navigation example"> | |
<ul class="pagination"> | |
{% if dados.currentPage > 1 %} | |
<li class="page-item"><a href="{{ this.page.baseFileName|page({ (pageParam): (dados.currentPage-1) }) }}">back</a></li> | |
{% endif %} | |
{% for page in 1..dados.lastPage %} | |
<li class="page-item {{ dados.currentPage == page ? 'active' : null }}"> | |
<a class="page-link" href="{{ this.page.baseFileName|page({ (pageParam): page }) }}">{{ page }}</a> | |
</li> | |
{% endfor %} | |
{% if dados.lastPage > posts.currentPage %} | |
<li class="page-item"><a href="{{ this.page.baseFileName|page({ (pageParam): (dados.currentPage+1) }) }}">Next</a></li> | |
{% endif %} | |
</ul> | |
</nav> | |
{% endif %} | |
<!-- /Pagination --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment