-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (28 loc) · 935 Bytes
/
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: Home
---
{% for post in paginator.posts %}
<article>
<header>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m" }}</time>
</header>
<section>
{{ post.excerpt }}
</section>
<footer class="is-excerpt">
<a href="{{ post.url }}">Go to the post →</a>
</footer>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">←</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">→</a>
{% endif %}
</div>
{% endif %}