-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
39 lines (36 loc) · 1.19 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
---
{% for post in paginator.posts %}
<article class="Teaser">
<header class="Teaser-header">
<h1 class="Teaser-title">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h1>
<p class="Post-meta">{{ post.date | date: "%B %e, %Y" }}</p>
</header>
<div class="Teaser-body">
{{ post.excerpt }}
<p>
<a href="{{ post.url | prepend: site.baseurl }}" class="btn">Continue reading...</a>
</p>
</div>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="Pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="Button">« Newer</a>
{% else %}
<span class="Button Button--disabled">« Newer</span>
{% endif %}
<span class="Pagination-position">
page {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="Button">Older »</a>
{% else %}
<span class="Button Button--disabled">Older »</span>
{% endif %}
</div>
{% endif %}