-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathindex.html
39 lines (34 loc) · 1.07 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
---
layout: default
title: Home
---
<div class="home">
<ul class="posts">
{% for post in paginator.posts %}
<li>
<h1 >{{ post.title }}</h1>
<span>{{ post.date | date: "%b %-d, %Y" }}</span>
{{ post.excerpt }}
<div class="continue">
<a href="{{ post.url | prepend: site.baseurl }}">•••</a>
</div>
</li>
{% endfor %}
</ul>
<div class="pagination">
{% if paginator.previous_page %}
{% if page == 2 %}
<a class="page-link" href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">prv</a>
{% else %}
<a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">prv</a>
{% endif %}
{% else %}
<span class="page-link">prv</span>
{% endif %}
{% if paginator.next_page %}
<a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">nxt</a>
{% else %}
<span class="page-link">nxt</span>
{% endif %}
</div>
</div>