-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (45 loc) · 1.29 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
49
50
---
layout: page
title: Hello World!
tagline: I Code
---
{% include JB/setup %}
{% for post in paginator.posts %}
<article>
<header>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p class="author">
<span class="date">{{post.date}}</span>
</p>
</header>
{{ post.content }}
</article>
<hr />
{% endfor %}
<div class="pagination">
<ul>
{% if paginator.previous_page %}
<li class="prev">
{% if paginator.previous_page == 1 %}
<a href="/">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}">← Previous</a>
{% endif %}
</li>
{% else %}
<li class="prev disabled">
<a>← Previous</a>
</li>
{% endif %}
<li class="disabled"><a>Page: {{paginator.page}} of {{paginator.total_pages}}</a></li>
{% if paginator.next_page %}
<li class="next">
<a href="/page{{paginator.next_page}}" class="next">Next →</a>
</li>
{% else %}
<li class="next disabled">
<a>Next →</a>
</li>
{% endif %}
</ul>
</div>