forked from lechoo/toddmotto.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·49 lines (48 loc) · 1.68 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
---
layout: default
title: Todd Motto
---
<div class="posts">
<ul class="posts__list">
{% for post in paginator.posts %}
<li>
{% if post.external %}<a href="{{ post.external }}" target="_blank">
{% else %}<a href="{{ post.url }}">{% endif %}
<h2 class="posts__title">{{ post.title }}</h2>
<span class="posts__date">{{ post.date | date: "%B %e, %Y" }}</span>
</a>
</li>
{% endfor %}
</ul>
<div class="pagination clear">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</a>
{% endif %}
{% else %}
<span class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</span>
{% endif %}
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="pagination--next">
Next
<i class="fa fa-angle-double-right"></i>
</a>
{% else %}
<span class="pagination--next">
Next
<i class="fa fa-angle-double-right"></i>
</span>
{% endif %}
</div>
</div>