gergelypolonkai-web-jekyll/_includes/pagination.html

18 lines
952 B
HTML
Raw Permalink Normal View History

2014-06-26 16:48:13 +00:00
<nav>
<ul class="pagination">
<li{% if paginator.previous_page == null %} class="disabled"{% endif %}>
2015-04-22 16:11:35 +00:00
<a href="{{paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/'}}" aria-label="Previous page">
2014-06-26 16:48:13 +00:00
<span aria-hidden="true">&laquo;</span>
</a>
</li>
2017-08-31 09:55:54 +00:00
{% for page in (1..paginator.total_pages) %}
2015-04-22 16:11:35 +00:00
<li{% if paginator.page == page %} class="active"{% endif %}><a href="{% if page == 1 %}{{'/blog' | prepend: site.baseurl}}{% else %}{{site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page}}{% endif %}">{{page}}</a></li>
2014-06-26 16:48:13 +00:00
{% endfor %}
<li{% if paginator.next_page == null %} class="disabled"{% endif %}>
2015-04-22 16:11:35 +00:00
<a href="{{paginator.next_page_path | prepend: site.baseurl | replace: '//', '/'}}" aria-label="Next page">
2014-06-26 16:48:13 +00:00
<span aria-hidden="true">&raquo;</span>
</a>
</li>
</ul>
</nav>