-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
38 lines (38 loc) · 1.49 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
---
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.baseurl | prepend: site.url }}/page{{ page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if !paginator.next_page %}
<li>
<a href="{{ paginator.next_page_path | prepend: site.baseurl | 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 sidebar_author.html%}
{% include sidebar_categories.html%}
{% include sidebar_tags.html%}
</div>