-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (67 loc) · 2.08 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
layout: default
title: "William Guozi的个人小站"
tagline: "coding && fighting"
description: "Devops,致力于建立一个有机的生态系统"
---
{% include JB/setup %}
<!-- Recent Posts -->
<section>
{% for post in paginator.posts %}
<article class="nested">
<header>
<h2><a href="{{ post.url }}" title="查看《{{ post.title }}》">{{ post.title }}</a></h2>
</header>
<section>
<p>
{{ post.content | strip_html | truncate:150 }}
</p>
</section>
<footer>
<p>
发表日期: <a href="{{ site.JB.archive_path }}#{{ post.date | date: '%B-%Y' }}" title="查看此月所有文章">{{ post.date | date: "%d %B %Y" }}</a>
作者: <a href="mailto:{{ site.author.email }}" title="向作者发送邮件">{{ site.author.name }}</a>
</p>
</footer>
</article>
{% endfor %}
</section>
<!-- Pagination Links -->
<section class="pagination pagination-centered">
<ul>
<!-- First Page -->
{% if paginator.previous_page %}
<li><a href="/index.html">««</a></li>
{% else %}
<li class="disabled"><a href="#">««</a></li>
{% endif %}
<!-- Previous Page -->
{% if paginator.previous_page %}
<li>
{% if paginator.previous_page == 1 %}
<a href="/index.html">«</a>
{% else %}
<a href="/page{{ paginator.previous_page }}">«</a>
{% endif %}
</li>
{% else %}
<li class="disabled"><a href="#">«</a></li>
{% endif %}
<!-- Current Page -->
<li class="active">
<span class="page_number ">第 {{ paginator.page }}/{{ paginator.total_pages }} 页</span>
</li>
<!-- Next Page -->
{% if paginator.next_page %}
<li><a href="/page{{paginator.next_page}}">»</a></li>
{% else %}
<li class="disabled"><a href="#">»</a></li>
{% endif %}
<!-- Last Page -->
{% if paginator.next_page %}
<li><a href="/page{{ paginator.total_pages }}">»»</a></li>
{% else %}
<li class="disabled"><a href="#">»»</a></li>
{% endif %}
</ul>
</section>