blob: aa2f0349954f914ce911eaaf1245dcb37fc24343 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{% if site.posts.size != 0 %}
<ul class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li><a href="{{ site.baseurl }}/"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li>
{% else %}
<li><a href="{{ site.baseurl }}/page{{ paginator.previous_page }}"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li>
{% endif %}
{% else %}
<li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li>
{% endif %}
{% if paginator.page == 1 %}
<li class="active"><a href="{{ site.baseurl }}/">1</a></li>
{% else %}
<li><a href="{{ site.baseurl }}/">1</a></li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="active"><a href="{{ site.baseurl }}/page{{ count }}">{{ count }}</a></li>
{% else %}
<li><a href="{{ site.baseurl }}/page{{ count }}">{{ count }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li><a href="{{ site.baseurl }}/page{{ paginator.next_page }}">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li>
{% else %}
<li class="disabled"><a href="#">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li>
{% endif %}
</ul>
{% endif %}
|