forked from besteric/besteric.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·60 lines (52 loc) · 2.45 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
---
title: Pretend To Write Like A Hacker
layout: page
---
<!--[if IE 6]>
<style type="text/css" media="screen">
.anti-ie6-top{zoom:1;position:relative;height:30px;text-align:center;padding-top:10px;background:red;color:white;font-size:14px}.anti-ie6-top a{color:white;text-decoration:none}.anti-ie6-top a:hover{text-decoration:underline}.anti-ie6-top-taobao,.anti-ie6-top-close,.anti-ie6-top-ie8{background:url(http://img02.taobaocdn.com/tps/i2/T13kMHXkBeXXcsc8fa-19-71.png) no-repeat}.anti-ie6-top-close{position:absolute;top:16px;right:12px;width:20px;height:20px;background-position:0 -50px;cursor:pointer}.anti-ie6-top-taobao{padding-left:22px;margin-left:25px;background-position:0 -25px}.anti-ie6-top-ie8{padding-left:22px;margin-left:30px;background-position:0 0}
</style>
<div class="anti-ie6-top">本站不支持IE6浏览器,建议您立即更新<a class="anti-ie6-top-ie8" href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie" target="_blank">ie8浏览器</a><a class="anti-ie6-top-taobao" href="http://download.taobaocdn.com/client/browser/download.php?pid=0080_2022">淘宝浏览器</a></div>
<![endif]-->
<ul class="listing">
{% for post in paginator.posts %}
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
{% if year != y %}
{% assign year = y %}
<li class="listing-seperator">{{ y }}</li>
{% endif %}
<li class="listing-item">
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<div id="post-pagination" class="paginator">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/"><前页</a>
{% else %}
<a href="/page{{paginator.previous_page}}"><前页</a>
{% endif %}
{% else %}
<span class="previous disabled"><前页</span>
{% endif %}
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="/">1</a>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<span class="current-page">{{count}}</span>
{% else %}
<a href="/page{{count}}">{{count}}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="next" href="/page{{paginator.next_page}}">后页></a>
{% else %}
<span class="next disabled" >后页></span>
{% endif %}
(共{{ paginator.total_posts }}篇)
</div>