-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·46 lines (41 loc) · 1.26 KB
/
Copy pathindex.html
File metadata and controls
executable file
·46 lines (41 loc) · 1.26 KB
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
40
41
42
43
44
45
---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<span class="post-date"><i class="far fa-calendar-alt"></i> {{ post.date | date: "%Y 年 %-m 月 %-d 日" }}</span>
<h1 class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h1>
<span class="post-excerpt">
{% if post.subtitle %}
<i class="fa fa-hashtag"></i>
{{ post.subtitle }}
{% else %}
<i class="fa fa-hashtag"></i>
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{% endif %}
</span>
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ site.baseurl }}/">前一页</a>
{% else %}
<a class="pagination-item newer" href="{{ site.baseurl }}/page{{paginator.previous_page}}">前一页</a>
{% endif %}
{% else %}
<span class="pagination-item newer">前一页</span>
{% endif %}
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ site.baseurl }}/page{{paginator.next_page}}">下一页</a>
{% else %}
<span class="pagination-item older">下一页</span>
{% endif %}
</div>