-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (47 loc) · 1.62 KB
/
index.html
File metadata and controls
52 lines (47 loc) · 1.62 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
---
layout: default
---
<body>
<div class="index-wrapper">
<div class="aside">
<div class="info-card">
<h1>Zhou Bohan</h1>
<a href="https://github.com/zhoubohan" target="_blank"><img src="http://www.github.com/favicon.ico" alt="" width="25"/></a>
</div>
<div id="particles-js"></div>
</div>
<div class="index-content">
<ul class="artical-list">
{% for post in paginator.posts %}
<li>
<a href="{{ post.url }}" class="title">{{ post.title }}</a>
<div class="title-desc">{{ post.description }}</div>
</li>
{% endfor %}
</ul>
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« 上一页</a>
{% else %}
<span>« 上一页</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">下一页 »</a>
{% else %}
<span>下一页 »</span>
{% endif %}
</div>
{% endif %}
</div>
</body>