-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (48 loc) · 1.09 KB
/
index.html
File metadata and controls
49 lines (48 loc) · 1.09 KB
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
40
41
42
43
44
45
46
47
48
49
---
layout: default
---
<section id="posts">
<ol>
{% for post in paginator.posts %}
<li>
{% include post.html %}
</li>
{% endfor %}
</ol>
{% if paginator.total_pages > 1 %}
<nav id="pagination">
<ol>
{% if paginator.previous_page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if paginator.previous_page %}
<li>
<a href="/{{ page_url }}" title="Go to previous page">
«
</a>
</li>
{% endif %}
<li>
{% for page in (1..paginator.total_pages) %}
<li>
{% if page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if page == paginator.page %}
{{ page }}
{% else %}
<a href="/{{ page_url }}">{{ page }}</a>
{% endif %}
</li>
{% endfor %}
{% if paginator.next_page %}
<li>
<a href="/page{{ paginator.next_page }}" title="Go to next page">
»
</a>
</li>
{% endif %}
</ol>
</nav>
{% endif %}
</section>