-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
executable file
·40 lines (31 loc) · 940 Bytes
/
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
---
layout: default
---
<div class="home">
<h1 class="page-heading">文章列表</h1>
<ul class="post-list">
{% for post in site.posts %}
<li>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<span class="glyphicon glyphicon-leaf" aria-hidden="true" width="96px" height="25px"> {{ post.title }}</span>
</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</li>
{% endfor %}
</ul>
<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>
</div>