forked from banyaner/banyaner.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (75 loc) · 1.93 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
---
layout: default
---
<div class="home pannel-left">
<h1 class="page-heading">目录</h1>
<style type="text/css">
.pannel-left{
float: left;
border: 1px solid white;
background: white;
opacity: 0.8;
box-sizing: border-box;
padding: 10px;
width: 70%;
}
.pannel-right{
float: right;
background: white;
border: 1px solid white;
opacity: 0.8;
width: 25%;
padding: 10px;
}
.listtit{
color: rgb(213, 125, 63);
text-align: center;
}
.sort{
padding-left: 10px;
/* font-family: 微软雅黑;*/
font-family: 'Berkshire Swash', cursive;
cursor: pointer;
}
@media all and (max-width: 800px) {
.pannel-left{
width: 100%;
}
.pannel-right{
display: none;
}
}
</style>
<ul class="post-list">
{% for post in site.posts %}
<li>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl}}">{{ post.title }}</a><span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</h2>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>
<div class="pannel-right">
<div class="listtit">CATEGORIES</div>
<div>
{% for category in site.categories %}
<p class="sort">{{ category | first }} </span>({{ category | last | size }})</span></p>
<ul class="arc-list">
{% for post in category.last %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li><!-- {{ post.date | date:"%d/%m/%Y"}} -->
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.sort').siblings('ul').hide()
.end().on('click',function(){
$(this).next().toggle().siblings('ul').hide();
});
})
</script>