-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar.html
71 lines (71 loc) · 2.52 KB
/
sidebar.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
<div class="am-u-lg-4 am-u-sm-10 am-u-lg-offset-0 am-u-sm-offset-0 sidebar-container">
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
关于博主
</span>
</div>
<ul class="list-inline">
#if(not_empty(theme_option('am_qq')))
<li>
<a class="am-icon-btn am-icon-qq" target="_blank" itemtype="url" href="tencent://message/?uin=${theme_option('am_qq')}&Site=junichi&Menu=yes"></a>
</li>
#end
#if(not_empty(theme_option('am_github')))
<li>
<a class="am-icon-btn am-icon-github" target="_blank" itemtype="url" href="https://github.com/${theme_option('am_github')}"></a>
</li>
#end
#if(not_empty(theme_option('am_weibo')))
<li>
<a class="am-icon-btn am-icon-weibo" target="_blank" itemtype="url" href="http://weibo.com/${theme_option('am_weibo')}"></a>
</li>
#end
#if(not_empty(theme_option('am_twitter')))
<li>
<a class="am-icon-btn am-icon-twitter" target="_blank" itemtype="url" href="http://twitter.com/${theme_option('am_twitter')}"></a>
</li>
#end
</ul>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
分类列表
</span>
</div>
<div class="sidebar-list">
<ul class="sidebar-list-body sidebar-list-items">
#for(a : categories())
<li class="sidebar-list-item">
<a href="${site_url()}/category/${a.name}">${a.name} (${a.count})</a>
</li>
#end
</ul>
</div>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
标签列表
</span>
</div>
<div class="tags">
#for(t : tags())
<a href="${site_url()}/tag/${t.name}/">${t.name}</a>#end
</div>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
最新文章
</span>
</div>
<div class="sidebar-list">
<ul class="sidebar-list-body sidebar-list-items">
#for(article : recent_articles(5))
<li class="sidebar-list-item"><a href="${permalink()}">${title()}</a></li>
#end
</ul>
</div>
</section>