-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (37 loc) · 1.32 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
---
layout: default
---
{% for post in paginator.posts %}
<h3>
<small>
<i class="fa fa-calendar"></i> {{ post.date | date: "%b %d, %Y" }}
</small>
</h3>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<article>
{{ post.excerpt | strip_footnotes }}
</article>
<div align="right">
<a href="{{ post.url }}#more" class="btn btn-default btn-lg">Read more <i class="fa fa-long-arrow-right"></i></a>
</div>
{% endfor %}
{% if paginator.total_pages >= 1 %}
<nav aria-label="Blog article pages">
<ul class="pager">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<li class="page-item"><a href="/"><span aria-hidden="true">←</span> Newer</a></li>
{% else %}
<li class="page-item"><a href="/page{{paginator.previous_page}}/"><span aria-hidden="true">←</span> Newer</a></li>
{% endif %}
{% else %}
<li class="page-item disabled"><a href="#"><span aria-hidden="true">←</span> Newer</a></li>
{% endif %}
{% if paginator.next_page %}
<li class="page-item"><a href="/page{{paginator.next_page}}/">Older <span aria-hidden="true">→</span></a></li>
{% else %}
<li class="page-item disabled"><a href="#">Older <span aria-hidden="true">→</span></a></li>
{% endif %}
</ul>
</nav>
{% endif %}