-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (30 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
---
layout: default
---
<section class="container">
<ul class="home post-list">
{% for post in paginator.posts %}
<li class="post-list-item">
<article class="post-block">
<h2 class="post-title">
<a href="{{ site.url | append: site.baseurl }}{{ post.url }}" class="post-title-link">{{ post.title }}</a>
</h2>
<div class="post-time">{{ post.date | date_to_utc | date: '%b %d, %Y' }}</div>
<div class="post-content">{{ post.content }}</div>
</article>
</li>
{% endfor %}
</ul>
<div class="paginator">
{% if paginator.previous_page %}
<a href="{{ site.url | append: site.baseurl }}{{ paginator.previous_page_path }}" class="prev">PREV</a>
{% else %}
<span class="prev-disable">PREV</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ site.url | append: site.baseurl }}{{ paginator.next_page_path }}" class="prev">NEXT</a>
{% else %}
<span class="next-disable">NEXT</span>
{% endif %}
</div>
</section>