-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (36 loc) · 1.06 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
---
layout: default
---
<section id="main_content" class="inner">
<div class="posts">
{% for post in paginator.posts %}
<div class="card post mb3">
<div class="post-date label text-gray">{{ post.date | date_to_string }}</div>
<h3 class="post-title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h3>
<div class="post-summary">
{{ post.excerpt }}
</div>
<div class="post-more">
<a href="{{ post.url }}">继续阅读 ⇥</a>
</div>
</div>
{% endfor %}
</div>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="btn previous">
上一页
</a>
{% else %}
<span class="btn disabled previous">上一页</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="btn next">下一页</a>
{% else %}
<span class="btn disabled next">下一页</span>
{% endif %}
</div>
</section>