-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (48 loc) · 1.49 KB
/
index.html
File metadata and controls
53 lines (48 loc) · 1.49 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
46
47
48
49
50
51
52
53
---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
{% if post.draft %}
{% else %}
<div class="post">
<h1 class="post-title">
<a href="{{ post.url }}">
{% if post.layout == 'translate' %}
译文:{{ post.title }}
{% else %}
{{ post.title }}
{% endif %}
</a>
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
<div class="home-post">{{ post.abstract }} <a href="{{ post.url }}">阅读全文 >></a></div>
<i class="fa fa-tags"></i>
{% for tag in post.tags %}
{% if forloop.last %}
<a href="{{ site.base_url }}/tags/#{{ tag }}">{{ tag }}</a>
{% else %}
<a href="{{ site.base_url }}/tags/#{{ tag }}">{{ tag }}</a>,
{% endif %}
{% endfor %}
</div>
{% endif %}
{% 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>