-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathindex.html
32 lines (31 loc) · 1014 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
---
layout: default
title: Home
---
<div class="home">
{% for post in paginator.posts %}
<article>
<div class="article">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="pre-post-toolbar">
<span class="post-date">{{ post.date | date: "%Y年%m月%d日" }}</span>
</div>
</div>
</article>
{% endfor %}
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="previous">新しい記事へ</a>
{% else %}
<span class="previous">新しい記事へ</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="next" rel="next">古い記事へ</a>
{% else %}
<span class="next">古い記事へ</span>
{% endif %}
</div>
{% endif %}
</div>