-
Notifications
You must be signed in to change notification settings - Fork 135
/
index.html
executable file
·33 lines (32 loc) · 1.01 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
---
layout: default
title: Todd Motto
---
<section class="posts">
<ul class="posts-list">
{% for post in paginator.posts %}
<li class="post">
<a href="{{ post.url }}" class="box transition">
<h2 class="post-title">{{ post.title }}</h2>
<span class="post-date">{{ post.date | date: "%B %e, %Y" }}</span>
</a>
</li>
{% endfor %}
</ul>
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="pagination-previous">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="pagination-previous">Previous</a>
{% endif %}
{% else %}
<span class="pagination-previous">Previous</span>
{% endif %}
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="pagination-next">Next</a>
{% else %}
<span class="pagination-next">Next</span>
{% endif %}
</div>
</section>