-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 1.04 KB
/
index.html
File metadata and controls
43 lines (38 loc) · 1.04 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
---
layout: default
title: Hunt's blog
---
<p>recent posts:</p>
<ul>
{% for post in paginator.posts %}
<li> {{ post.date | date_to_string }} <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<div id="post-pagination" class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/"><<</a>
{% else %}
<a href="{{ paginator.previous_page_path }}"><<</a>
{% endif %}
{% else %}
<span><<</span>
{% endif %}
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="/">1</a>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<a href="/page{{ count }}">{{ count }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}">>></a>
{% else %}
<span>>></span>
{% endif %}
</div>