-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
39 lines (38 loc) · 1.33 KB
/
index.html
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
31
32
33
34
35
36
37
38
39
---
layout: default
---
<div class="col-md-9 col-content">
{% for post in paginator.posts %}
{% include posts.html%}
{% endfor %}
<nav>
<ul class="pagination pagination-posts">
{% if paginator.total_pages > 1 %}
{% if paginator.previous_page %}
<li>
<a href="{{ paginator.previous_page_path | prepend: site.url}}" aria-label="Previous"><span aria-hidden="true">«</span></a>
</li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><span>{{ page }}</span></li>
{% elsif page == 1 %}
<li><a href="{{ site.url }}">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.url}}/page/{{ page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if !paginator.next_page %}
<li>
<a href="{{ paginator.next_page_path | prepend: site.url}}" aria-label="Next"><span aria-hidden="true">»</span></a>
</li>
{% endif %}
{% endif %}
</ul>
</nav>
</div>
<div class="col-md-3 col-sidebar">
{% include author.html%}
{% include categories.html%}
{% include tags.html%}
</div>