-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
111 lines (102 loc) · 5.2 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
---
layout: tech
paginate_path: "page:num"
---
<div class="row" style="background-color:#1d1d1d;margin-left:0;margin-right:0;border-bottom:1px dashed #303030;">
<div class="col-md-12" style="padding-left:0;padding-right:0;">
<ul class="ds-recent-visitors" data-num-items="18"></ul>
</div>
</div>
<div class="row zhaiDiv">
<div class="col-md-4 top-title">
<h2>文章列表</h2>
</div>
<div class="col-md-8">
<ul class="tech-list clearfix">
<li class="pull-left active"><a href="">全部</a></li>
<li class="pull-left"><a href="">前端</a></li>
<li class="pull-left"><a href="">IOS</a></li>
<li class="pull-left"><a href="">后台</a></li>
</ul>
</div>
</div>
<div id="code">
<!-- allpages -->
<div class="row zhaiDiv allPosts postlist">
<ul class="col-md-12 normal-list">
{% for post in site.posts %}
<li class="post-{{ post.category }} row upost-li">
{% if post.external_url == nil %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span> <a href="{{ post.url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.url }}">0条评论</span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% else %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span><a href="{{ post.external_url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.external_url }}"></span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- fontendPosts -->
<div class="row zhaiDiv fontendPosts postlist">
<ul class="col-md-12 normal-list">
{% for post in site.tags.fontend %}
<li class="post-{{ post.category }} row">
{% if post.external_url == nil %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span> <a href="{{ post.url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.url }}">0条评论</span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% else %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span><a href="{{ post.external_url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.external_url }}"></span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- iosPosts -->
<div class="row zhaiDiv iosPosts postlist">
<ul class="col-md-12 normal-list">
{% for post in site.tags.ios %}
<li class="post-{{ post.category }} row">
{% if post.external_url == nil %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span> <a href="{{ post.url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.url }}">0条评论</span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% else %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span><a href="{{ post.external_url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.external_url }}"></span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- backPosts -->
<div class="row zhaiDiv backPosts postlist">
<ul class="col-md-12 normal-list">
{% for post in site.tags.back %}
<li class="post-{{ post.category }} row">
{% if post.external_url == nil %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span> <a href="{{ post.url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.url }}">0条评论</span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% else %}
<p class="col-md-8 cus-sm-li-zheng"><span class="glyphicon glyphicon-fire"></span><a href="{{ post.external_url }}" target="_blank">{{ post.title }}</a></p>
<p class="col-md-4 cus-sm-li-fu clearfix"><span class="ds-thread-count" data-thread-key="{{ post.external_url }}"></span> <span class="hidden-xs">|</span> <abbr>{{ post.date | date_to_string }}</abbr></p>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
<script>
var uu = [];
$.each($(".upost-li"), function(index, val) {
var uuRe = $(this).find("abbr").text().split(" ");
if (uu.length == 0){
uu = uuRe;
$(this).before('<p class="text-center upost-css">'+uuRe[1]+" "+uuRe[2]+'</p>');
}else if(uuRe[1] != uu[1] || uuRe[2] != uu[2]){
uu = uuRe;
$(this).before('<p class="text-center upost-css">'+uuRe[1]+" "+uuRe[2]+'</p>');
}
});
</script>
{% include duoshuo.html %}