-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (34 loc) · 1.06 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
---
layout: default
title: You could call it a blog
---
<ul class="posts">
{% if paginator.posts %}
{% for post in paginator.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<br /> {{ post.date | date: "%-d %B %Y" }}
<br /> {{ post.excerpt }}
</li>
{% endfor %}
{% endif %}
</ul>
<ul class="paged-navigation">
{% if paginator.previous_page %}
<li class="prev">
{% if paginator.previous_page == 1 %}
<a href="/" class="btn-default">
{% else %}
<a href="/page{{paginator.previous_page}}" class="btn-default">
{% endif %}
Prev</a></li>
{% else %}
<li class="prev"><a href="#" class="btn-default disabled">Prev</a></li>
{% endif %}
<li class="num">Page: {{paginator.page}} of {{paginator.total_pages}}</li>
{% if paginator.next_page %}
<li class="next"><a href="/page{{paginator.next_page}}" class="btn-default">Next</a></li>
{% else %}
<li class="next"><a href="#" class="btn-default disabled">Next</a></li>
{% endif %}
</ul>