-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (32 loc) · 1 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
---
layout: default
title: Your New Jekyll Site
---
<div id="home">
<h1>Blog Posts</h1>
{% for post in paginator.posts %}
<a href="{{ post.url }}">{{ post.title }} {{ post.date | date_to_string }}</a>
<div class="post-content">{{ post.content }}</div>
{% endfor %}
</div>
</br>
</br>
{% if paginator.total_pages > 1 %}
<div class="postnavigation" align="center">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="prev left" href="/">← Newer</a>
{% else %}
<a class="prev left" href="/page{{paginator.previous_page}}/">← Newer</a>
{% endif %}
{% else %}
<span class="nope left">← Newer</span>
{% endif %}
<span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="next right" href="/page{{paginator.next_page}}/">Older →</a>
{% else %}
<span class="nope right">Older →</span>
{% endif %}
</div>
{% endif %}