-
Notifications
You must be signed in to change notification settings - Fork 1
/
archives.html
68 lines (68 loc) · 2.6 KB
/
archives.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
#include('./partial/header.html', {title: '文章归档'})
<div id="container" class="container">
<div class="row">
<section id="main" class="col-md-8">
<article>
<div class="kratos-hentry kratos-post-inner clearfix">
<div class="kratos-post-content">
<div id="archives">
<h2 class="title-h2" style="text-align:center;font-size:18pt">文章归档</h2>
<p style="text-align:center"><span style="color:#999">文章归档页。点击月份可展开文章~<a href="javascript:;" id="al_collapse" style="color:#999;display:none">[折叠全部]</a><a href="javascript:;" id="al_expand" style="color:#999">[展开全部]</a></span></p>
<hr />
<h4>Tags</h4>
<div class="arc-tag">
#for(tag : tags())
<a href="/tag/${tag.name}/" class="tag-cloud-link tag-link tag-link-position" style="font-size: 14px;">${tag.name}</a>
#end
</div>
#for(archive : archives)
<h4 class="al_year">${fmtdate(archive.date, 'yyy')}年</h4>
<div class="al_mon_list">
<section id="mon" style="overflow:hidden">
<div class="al_mon">
◉ ${fmtdate(archive.date, 'MM')}月
</div>
<div class="mon_arc" style="display:none">
#for(article : archive.articles)
<div class="arc-t">
<div class="arc-tile">
<a href="${(permalink())}">${title()}</a>
<br />
<span>${created('yyyy-MM-dd')}</span>
</div>
</div>
#end
</div>
</section>
</div>
#end
</div>
<hr />
</div>
</div>
</article>
</section>
#include('./partial/sidebar.html')
</div>
<script type="text/javascript">
$('#archives section#mon').each(function(){
var num=$(this).find('.arc-t').size();
var text=$(this).find('.al_mon').text();
$(this).find('.al_mon').html(text+'('+num+' 篇文章)');
});
$('#archives h4.al_year').click(function(){
$(this).next().slideToggle(400);return false;
});
$('#archives div.al_mon').click(function(){
$(this).next().slideToggle(400);return false;
});
$('#al_collapse').click(function(){
$('.mon_arc').hide(400);$('#al_collapse').hide();$('#al_expand').show();
});
$('#al_expand').click(function(){
$('.mon_arc').show(400);$('#al_expand').hide();$('#al_collapse').show();
});
</script>
</div>
</div>
#include('./partial/footer.html')