-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (38 loc) · 1.39 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
40
41
---
layout: default
---
<div class="recent-posts">
<div class="post-list">
{% for post in paginator.posts %}
<article class="post">
<header>
<h3 class="title"><a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3>
</header>
<div class="datetime">
{{ post.date | date_to_long_string }}
</div>
<div class="tags">
{% for tag in post.tags %}
<span>{{ tag }}</span>
{% endfor %}
</div>
{% if post.excerpt %}
<p class="excerpt">{{ post.excerpt }}</p>
{% endif %}
</article>
{% endfor %}
<!-- 分页链接 -->
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="pagi-link previous" href="{{ site.baseurl }}/">上一页</a>
{% else %}
<a class="pagi-link previous" href="{{ site.baseurl }}/page{{ paginator.previous_page }}">上一页</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a class="pagi-link next" href="{{ site.baseurl }}/page{{ paginator.next_page }}">下一页</a>
{% endif %}
</div>
</div>
</div>