-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (47 loc) · 1.13 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
40
41
42
43
44
45
46
47
48
---
layout: default
---
<section id="posts">
<h2>Blog posts</h2>
<div id="list">
{% for post in paginator.posts %}
<div id="entry">
<div id="entry-date">{{ post.date | date:"%B %d, %Y" }}</div>
<div id="entry-title"><a href="{{ post.url }}">{{ post.title }}</a></div>
</div>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<nav id="pagination">
<ol>
{% 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>