-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
227 lines (225 loc) · 18.6 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
---
layout: default
title: HOME PAGE
---
<div class="container docs-container">
<div class="row">
<div class="col-md-3">
<div class="sidebar hidden-print" role="complementary">
<ul class="about-me text-center">
<li class="sidebar-title text-left"><span>About Me</span></li>
<li class="me-header"><img class="img-circle" src="/styles/images/me/me1.jpg" alt="me" width=100></li>
<li><p><a href="https://github.com/lanlan1128" target="_blank">Lan</a></p></li>
<li class="we-chat">
<span><a href="mailto:{{site.email}}"><svg viewBox="0 0 1024 1024" version="1.1" width="30" height="30"><path d="M512 63.791885c-247.538793 0-448.208115 200.669322-448.208115 448.208115s200.669322 448.208115 448.208115 448.208115 448.208115-200.669322 448.208115-448.208115S759.538793 63.791885 512 63.791885zM774.58958 323.779198 512.332575 544.363082l-262.240633-220.583884L774.58958 323.779198zM248.078075 342.614172l175.202301 148.376329L248.078075 700.015118 248.078075 342.614172zM268.360004 700.220802l167.104879-197.293435 76.81141 63.081711 76.95058-65.046459 167.096692 199.258183L268.360004 700.220802zM775.921925 700.015118 600.727811 490.9905l175.194114-148.376329L775.921925 700.015118z" fill="#B5A9B7"></path>
</svg></a></span>
<span class="contact-list_1"><img class="contact-chat" src="/styles/images/me/weChat.png" alt="我的微信"><svg viewBox="0 0 1024 1024" version="1.1" width="30" height="30"><path d="M570.625024 510.793728c-10.160128 0-20.32128 9.435136-20.32128 21.046272 0 9.435136 10.160128 18.869248 20.32128 18.869248 15.240192 0 26.126336-9.435136 26.126336-18.869248C596.75136 520.228864 585.865216 510.793728 570.625024 510.793728z" fill="#B5A9B7"></path><path d="M503.856128 412.818432c15.966208 0 26.126336-10.160128 26.126336-25.401344 0-15.966208-10.160128-25.401344-26.126336-25.401344-15.240192 0-29.755392 9.435136-29.755392 25.401344C474.100736 402.658304 488.615936 412.818432 503.856128 412.818432z" fill="#B5A9B7"></path><path d="M511.839232 65.717248c-246.009856 0-445.44 199.430144-445.44 445.44s199.430144 445.44 445.44 445.44 445.44-199.430144 445.44-445.44S757.849088 65.717248 511.839232 65.717248zM427.65312 624.01024c-26.852352 0-46.447616-4.354048-71.84896-11.61216l-73.299968 37.013504 21.046272-62.413824c-51.52768-36.287488-82.009088-82.009088-82.009088-137.89184 0-98.701312 92.895232-174.178304 206.111744-174.178304 100.15232 0 189.41952 59.510784 206.83776 143.69792-7.257088-1.451008-13.789184-2.177024-19.595264-2.177024-98.701312 0-174.90432 74.025984-174.90432 163.29216 0 15.240192 2.177024 29.029376 5.80608 43.544576C439.991296 624.01024 433.4592 624.01024 427.65312 624.01024zM730.289152 695.133184l14.5152 52.253696-55.156736-31.207424c-21.046272 4.354048-41.367552 10.886144-62.413824 10.886144-97.250304 0-174.178304-66.768896-174.178304-149.502976s76.929024-149.502976 174.178304-149.502976c92.169216 0 174.90432 66.768896 174.90432 149.502976C802.137088 624.01024 770.930688 665.377792 730.289152 695.133184z" fill="#B5A9B7"></path><path d="M360.159232 362.016768c-15.240192 0-31.207424 9.435136-31.207424 25.401344 0 15.240192 15.966208 25.401344 31.207424 25.401344 14.5152 0 26.126336-10.160128 26.126336-25.401344C386.285568 371.45088 374.673408 362.016768 360.159232 362.016768z" fill="#B5A9B7"></path><path d="M684.566528 510.793728c-10.886144 0-20.32128 9.435136-20.32128 21.046272 0 9.435136 9.435136 18.869248 20.32128 18.869248 14.5152 0 25.401344-9.435136 25.401344-18.869248C709.967872 520.228864 699.081728 510.793728 684.566528 510.793728z" fill="#B5A9B7"></path>
</svg></span>
<span class="contact-list_2"><img class="contact-qq" src="/styles/images/me/QQ.jpg" alt="我的QQ"><svg viewBox="0 0 1024 1024" version="1.1" width="30" height="30"><path d="M512 64C264.56 64 64.033 264.565 64.033 512.007 64.033 759.447 264.56 960 512 960c247.415 0 447.967-200.553 447.967-447.993C959.967 264.566 759.414 64 512 64L512 64zM758.643 651.644c-11.555 10.784-31.423-0.977-50.519-27.406-8.286 22.389-19.094 43.001-31.628 61.532 26.998 9.65 44.342 24.68 44.342 41.665 0 29.312-51.855 53.04-115.885 53.04-38.01 0-71.568-8.313-92.773-21.23-20.999 12.918-54.764 21.23-92.749 21.23-64.028 0-115.909-23.728-115.909-53.04 0-16.78 17.37-32.015 44.367-41.665-12.714-18.503-23.316-39.144-31.628-61.532-19.095 26.225-38.937 38.19-50.518 27.406-15.828-14.849-9.831-67.322 13.69-117.068 5.404-11.374 11.168-21.591 17.14-30.47C299.867 359.463 395.138 243.36 512 243.36l0.386 0c116.862 0 212.133 115.911 215.401 260.745 5.97 8.879 11.785 19.095 17.164 30.47C768.294 584.321 774.469 636.795 758.643 651.644L758.643 651.644z" fill="#B5A9B7"></path>
</svg></span>
<span><a href="{{site.weibo}}" target="_blank"><svg viewBox="0 0 1024 1024" version="1.1" width="30" height="30"><path d="M471.451492 510.249123c-88.793302 4.100388-160.598698 51.671846-160.598698 111.01542 0 59.272965 71.805396 103.802134 160.598698 99.651604 88.889493-4.03592 160.823825-59.663868 160.823825-118.925576C632.274294 542.78105 560.340985 506.164085 471.451492 510.249123zM531.974937 659.501402c-27.198455 35.109636-81.011059 52.256154-133.285632 23.954575-24.863271-13.501502-23.940249-40.001039-23.940249-40.001039s-10.342556-83.672678 79.000262-94.111424C543.191396 538.953885 559.172369 624.39279 531.974937 659.501402zM429.729252 614.974279c-16.695241 1.736551-28.624944 16.291035-28.624944 30.181393 0 13.95585 13.420661 23.566742 30.115901 21.608134 16.597003-1.883907 30.116925-14.718213 30.116925-28.628014C461.337133 624.198362 448.888614 613.143585 429.729252 614.974279zM472.050126 603.482551c-5.722328 4.15053-6.889921 12.059664-3.777023 17.001209 2.982938 5.077645 9.952676 5.66093 15.592117 1.430582 5.51255-4.364401 7.653307-11.949146 4.670369-17.007349C485.552651 599.965447 478.68115 598.554308 472.050126 603.482551zM512.24457 66.981531c-246.678192 0-446.650643 199.972451-446.650643 446.650643s199.972451 446.650643 446.650643 446.650643 446.650643-199.972451 446.650643-446.650643S758.922762 66.981531 512.24457 66.981531zM711.664436 641.314181c-36.629245 77.771271-157.354817 115.635647-246.827595 108.615767-85.031629-6.694469-194.361663-34.930557-205.658963-137.825019 0 0-5.963829-46.616714 39.226397-106.915032 0 0 64.964594-90.753957 140.6606-116.655883 75.760474-25.755594 84.578304 17.847483 84.578304 43.618427-4.0175 21.883403-11.540847 34.737152 16.889669 25.900903 0 0 74.463945-34.523281 105.099686-3.888564 24.736381 24.733311 4.085038 58.756195 4.085038 58.756195s-10.243295 11.361769 10.862395 15.44783C681.745009 532.583804 748.266052 563.41295 711.664436 641.314181zM638.241192 426.446485c-8.106632 0-14.623046-6.548136-14.623046-14.604626 0-8.184403 6.516414-14.731516 14.623046-14.731516 0 0 91.269703-16.892739 80.362282 81.205487 0 0.583285-0.064468 1.037632-0.194428 1.556449-1.037632 6.935969-7.148817 12.269441-14.344706 12.269441-8.118911 0-14.734586-6.500041-14.734586-14.603603C689.329754 477.53914 703.789071 411.974889 638.241192 426.446485zM792.548604 504.900302l-0.130983 0c-2.399653 16.59598-10.647501 17.927301-20.455891 17.927301-11.735275 0-21.23258-7.393387-21.23258-19.128663 0-10.178827 4.211928-20.518313 4.211928-20.518313 1.25048-4.28049 11.18576-30.928407-6.547113-70.704318-32.451086-54.525847-97.835236-55.336306-105.553011-52.222385-7.779174 3.045359-19.285229 4.600785-19.285229 4.600785-11.803837 0-21.283746-9.628288-21.283746-21.299095 0-9.82067 6.565533-18.121729 15.512299-20.648272 0 0 0.191358-0.324388 0.518816-0.38988 0.647753-0.12996 1.297552-0.796132 2.010797-0.860601 9.092076-1.733481 41.558511-8.118911 73.101925-0.728594C749.887992 334.122777 827.399343 388.714116 792.548604 504.900302z" fill="#B5A9B7"></path>
</svg></a></span>
<span><a href="{{site.github}}" target="_blank"><svg viewBox="0 0 1024 1024" version="1.1" width="30" height="30"><path d="M512 73.142857q119.428571 0 220.285714 58.857143T892 291.714286 950.857143 512q0 143.428571-83.714286 258T650.857143 928.571429q-15.428571 2.857143-22.857143-4t-7.428571-17.142858q0-1.714286 0.285714-43.714285t0.285714-76.857143q0-55.428571-29.714286-81.142857 32.571429-3.428571 58.571429-10.285715t53.714286-22.285714 46.285714-38 30.285714-60T792 489.142857q0-68-45.142857-117.714286 21.142857-52-4.571429-116.571428-16-5.142857-46.285714 6.285714t-52.571429 25.142857l-21.714285 13.714286q-53.142857-14.857143-109.714286-14.857143t-109.714286 14.857143q-9.142857-6.285714-24.285714-15.428571T330.285714 262.571429 281.714286 254.857143q-25.714286 64.571429-4.571429 116.571428-45.142857 49.714286-45.142857 117.714286 0 48.571429 11.714286 85.714286t30 60 46 38.285714 53.714285 22.285714 58.571429 10.285715q-22.285714 20.571429-28 58.857143-12 5.714286-25.714286 8.571428t-32.571428 2.857143-37.428572-12.285714T276.571429 728q-10.857143-18.285714-27.714286-29.714286t-28.285714-13.714285l-11.428572-1.714286q-12 0-16.571428 2.571428t-2.857143 6.571429 5.142857 8 7.428571 6.857143l4 2.857143q12.571429 5.714286 24.857143 21.714285t18 29.142858l5.714286 13.142857q7.428571 21.714286 25.142857 35.142857t38.285714 17.142857 39.714286 4 31.714286-2l13.142857-2.285714q0 21.714286 0.285714 50.571428t0.285714 31.142857q0 10.285714-7.428571 17.142858t-22.857143 4q-132.571429-44-216.285714-158.571429T73.142857 512q0-119.428571 58.857143-220.285714T291.714286 132 512 73.142857zM239.428571 703.428571q1.714286-4-4-6.857142-5.714286-1.714286-7.428571 1.142857-1.714286 4 4 6.857143 5.142857 3.428571 7.428571-1.142858z m17.714286 19.428572q4-2.857143-1.142857-9.142857-5.714286-5.142857-9.142857-1.714286-4 2.857143 1.142857 9.142857 5.714286 5.714286 9.142857 1.714286z m17.142857 25.714286q5.142857-4 0-10.857143-4.571429-7.428571-9.714285-3.428572-5.142857 2.857143 0 10.285715t9.714285 4z m24 24q4.571429-4.571429-2.285714-10.857143-6.857143-6.857143-11.428571-1.714286-5.142857 4.571429 2.285714 10.857143 6.857143 6.857143 11.428571 1.714286z m32.571429 14.285714q1.714286-6.285714-7.428572-9.142857-8.571429-2.285714-10.857142 4t7.428571 8.571428q8.571429 3.428571 10.857143-3.428571z m36 2.857143q0-7.428571-9.714286-6.285715-9.142857 0-9.142857 6.285715 0 7.428571 9.714286 6.285714 9.142857 0 9.142857-6.285714z m33.142857-5.714286q-1.142857-6.285714-10.285714-5.142857-9.142857 1.714286-8 8.571428t10.285714 4.571429 8-8z" fill="#B5A9B7"></path>
</svg></a></span>
</li>
<!--tags-->
<li id="tagscloud">
{% if site.tags.first[0] == null %}
{% for tag in site.tags %}
<a href="/tag/{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }}</a>
{% endfor %}
{% else %}
{% for tag in site.tags %}
<a href="/tag/{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }}</a>
{% endfor %}
{% endif %}
</li>
</ul>
</div>
</div>
<div class="col-md-9" role="main">
<div class="panel docs-content">
<!-- 遍历分页后的文章 -->
{% for post in paginator.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
{% if forloop.first %}
<h2 id="year_{{this_year}}">{{this_year}}</h2>
<h3 id="month_{{this_year}}_{{this_month}}">{{this_month}}</h3>
<div>
{% endif %}
<div class="breadcrumb clearfix">
<div><h3 style="margin-top:13px"><a class="color-title" rel="nofollow" href='{{post.url}}'>{{ post.title }}</a></h3></div>
<div class="excerpt">{{ post.excerpt }}</div>
<!--
<p><span class="date-artical pull-left lh30">{{ post.date | date: "%B %e , %Y" }}<a class="tags-title" href="/tag/#{{ post.tags }}-ref">{{ post.tags }}</a></span><a class="btn btn-primary pull-right" rel="nofollow" href='{{post.url}}' target="_blank">阅读全文</a></p>
-->
<p><span class="date-artical pull-left lh30">{{ post.date | date: "%B %e , %Y" }}
{% for tag in post.tags %}
<a class="tags-title" href="/tag/#{{ tag }}-ref">{{ tag }}</a>
{% endfor %}
</span><a class="btn btn-primary pull-right" rel="nofollow" href='{{post.url}}'>阅读全文</a></p>
</div><hr>
{% if forloop.last %}
</div>
{% else %}
{% if this_year != next_year %}
</ul>
<h2 id="year_{{next_year}}">{{next_year}}</h2>
<h3 id="month_{{next_year}}_{{next_month}}">{{next_month}}</h3>
<ul>
{% else %}
{% if this_month != next_month %}
</ul>
<h3 id="month_{{next_year}}_{{next_month}}">{{next_month}}</h3>
<ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
<!-- 分页链接 -->
<ul class="pagination">
<li>
<a href="/">
<span>首页</span>
</a>
</li>
<li>
{% if paginator.page == 1 %}
<span>«</span>
{% else %}
{% if paginator.previous_page == 1 %}
<a href="/">
{% else %}
<a href="/page{{ paginator.previous_page }}">
{% endif %}
<span>«</span>
</a>
{% endif %}
</li>
<li>
{% assign page_str = '' %}
{% assign curr_page_num = paginator.page %}
{% assign prev_page_count = 0 %}
{% if curr_page_num > 1 %}
{% assign end = curr_page_num | minus:1 %}
{% if curr_page_num < 3 or curr_page_num == 3 %}
{% assign start = 1 %}
{% else %}
{% assign start = curr_page_num | minus:2 %}
{% endif %}
{% for count in (start..end) %}
{% assign page_str = page_str | append:',' | append:count %}
{% assign prev_page_count = prev_page_count | plus:1 %}
{% endfor %}
{% endif %}
{% assign page_str = page_str | append:',' | append:curr_page_num %}
{% assign last_page_num = paginator.total_pages %}
{% assign next_page_count = 0 %}
{% if last_page_num > curr_page_num %}
{% assign rest_page_count = last_page_num | minus:curr_page_num %}
{% assign start = curr_page_num | plus:1 %}
{% if rest_page_count > 2 %}
{% assign end = curr_page_num | plus:2 %}
{% if prev_page_count < 2 %}
{% assign not_enough = 2 | minus:prev_page_count %}
{% for i in (1..not_enough) %}
{% assign try_add_page = end | plus:1 %}
{% if try_add_page < last_page_num or try_add_page == last_page_num %}
{% assign end = try_add_page %}
{% endif %}
{% endfor %}
{% endif %}
{% else %}
{% assign end = last_page_num %}
{% endif %}
{% for count in (start..end) %}
{% assign page_str = page_str | append:',' | append:count %}
{% assign next_page_count = next_page_count | plus:1 %}
{% endfor %}
{% endif %}
{% if next_page_count < 2 and curr_page_num > 2 %}
{% assign not_enough = 2 | minus:next_page_count %}
{% for i in (1..not_enough) %}
{% assign try_add_page = curr_page_num | minus:3 %}
{% if try_add_page > 1 or try_add_page == 1 %}
{% assign page_str = page_str | prepend:try_add_page | prepend:',' %}
{% assign curr_page_num = curr_page_num | minus:1 %}
{% endif %}
{% endfor %}
{% endif %}
{% assign page_str = page_str | replace_first:',','' %}
{% assign page_arr = page_str | split:',' %}
{% assign curr_page_num = paginator.page | append:'' %}
{% for count in page_arr %}
{% if count == curr_page_num %}
<span class="active">{{ count }}</span>
{% elsif count == '1' %}
<a href="/">{{ count }}</a>
{% else %}
<a href="/page{{ count }}/">{{ count }}</a>
{% endif %}
{% endfor %}
</li>
<li>
{% if paginator.page == paginator.total_pages %}
<span>»</span>
{% else %}
<a href="/page{{ paginator.next_page }}">
<span>»</span>
</a>
{% endif %}
</li>
<li>
<a href="/page{{paginator.total_pages}}">
<span>末页</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<script src="{{ '/styles/js/tag.min.js' | prepend: site.baseurl }}"></script>
<script>
var i=0;
var oTag=null;
oDiv=document.getElementById('tagscloud');
aA=oDiv.getElementsByTagName('a');
for(i=0;i<aA.length;i++)
{
oTag={};
aA[i].onmouseover = (function (obj) {
return function () {
obj.on = true;
this.style.zIndex = 9999;
this.style.color = '#fff';
this.style.padding = '5px 5px';
this.style.filter = "alpha(opacity=100)";
this.style.opacity = 1;
}
})(oTag)
aA[i].onmouseout = (function (obj) {
return function () {
obj.on = false;
this.style.zIndex = obj.zIndex;
this.style.color = '#fff';
this.style.padding = '0 5px';
this.style.filter = "alpha(opacity=" + 100 * obj.alpha + ")";
this.style.opacity = obj.alpha;
this.style.zIndex = obj.zIndex;
}
})(oTag)
oTag.offsetWidth = aA[i].offsetWidth;
oTag.offsetHeight = aA[i].offsetHeight;
mcList.push(oTag);
}
sineCosine( 0,0,0 );
positionAll();
(function () {
update();
setTimeout(arguments.callee, 40);
})();
</script>