-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (48 loc) · 1.77 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
layout: default
---
<div id="main">
{% for post in paginator.posts %}
<article class="article">
<div class="diamond">
<div class="box tag-icon-default tag-icon-{{post.categories[0]}}">
</div>
</div>
<div class="con">
<h1><a href="{{ site.baseurl}}{{ post.url }}">{{ post.title }}</a></h1>
<p class="date"><span>{{ post.date | date: "%Y年%m月%d日" }}</span></p>
<div class="tip">
{{ post.excerpt | strip_html }}
</div>
<div class="img">
<img src="//whhbio.oss-cn-beijing.aliyuncs.com/blog/{{ post.title }}.jpg" alt="" width="570px" height="144px">
</div>
<div class="addition">
<a class="more base-link" href="{{ site.baseurl}}{{ post.url }}">
阅读全文
</a>
</div>
</div>
</article>
{% endfor %}
<div class="page">
{% if paginator.page == 1 %}
{% else %}
{% if paginator.previous_page == 1 %}
<a class="prev base-link" href="{{ site.baseurl}}/">
<span>Prev</span>
</a>
{% else %}
<a class="prev base-link" href="{{ site.baseurl}}/article/{{ paginator.previous_page }}">
<span>Prev</span></a>
</a>
{% endif %}
{% endif %}
{% if paginator.page == paginator.total_pages %}
{% else %}
<a class="next base-link" href="{{ site.baseurl}}/article/{{ paginator.next_page }}">
<span>Next</span>
</a>
{% endif %}
</div>
</div>