-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (23 loc) · 730 Bytes
/
index.html
File metadata and controls
28 lines (23 loc) · 730 Bytes
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
---
layout: default
---
{% for post in paginator.posts %}
{% include post.html %}
{% endfor %}
{% if paginator.total_pages > 1 %}
<div id="pagination">
{% if paginator.previous_page %}
<a class="prev" href="/{%if paginator.previous_page > 1 %}page{{ paginator.previous_page }}/{% endif %}">« Newer</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span class="num">{{ page }}</span>
{% else %}
<a class="num" href="/{%if page > 1 %}page{{ page }}/{% endif %}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="next" href="/page{{ paginator.next_page }}/">Older »</a>
{% endif %}
</div>
{% endif %}