-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathside.ftl
175 lines (163 loc) · 8.53 KB
/
side.ftl
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-present, b3log.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div class="nexmoe-drawer mdui-drawer" id="drawer">
<div class="nexmoe-avatar mdui-ripple">
<a href="${servePath}/" title="${blogTitle}">
<img src="${faviconURL}" title="${blogTitle}" alt="${userName}"></a>
</div>
<div class="nexmoe-count">
<div>
<span>${articleLabel}</span>
${statistic.statisticPublishedBlogArticleCount}
</div>
<div>
<span class="ft-gray">${viewLabel}</span>
<b class="notb" data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</b>
</div>
</div>
<div class="list-content">
<ul class="nexmoe-list mdui-list header__nav" mdui-collapse="{accordion: true}">
<a class="nexmoe-list-item mdui-list-item mdui-ripple" href="${servePath}/" title="${blogTitle}">
<i class="mdui-list-item-icon iconfont solo-home"></i>
<div class="mdui-list-item-content">回到首页</div>
</a>
<a class="nexmoe-list-item mdui-list-item mdui-ripple" href="${servePath}/links.html"
title="${linkLabel} - ${blogTitle}">
<i class="mdui-list-item-icon iconfont solo-list"></i>
<div class="mdui-list-item-content">${linkLabel}</div>
</a>
<a class="nexmoe-list-item mdui-list-item mdui-ripple" href="${servePath}/tags.html"
title="${tagLabel} - ${blogTitle}">
<i class="mdui-list-item-icon iconfont solo-tags"></i>
<div class="mdui-list-item-content">${tagLabel}</div>
</a>
<#list pageNavigations as page>
<a class="nexmoe-list-item mdui-list-item mdui-ripple" href="${page.pagePermalink}"
title="${page.pageTitle}" target="${page.pageOpenTarget}">
<i class="mdui-list-item-icon iconfont solo-${page.pageIcon}"></i>
<div class="mdui-list-item-content">${page.pageTitle}</div>
</a>
</#list>
</ul>
</div>
<aside id="nexmoe-sidebar">
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">功能按钮</h3>
<div class="nexmoe-widget nexmoe-social features">
<a href="${servePath}/search" title="搜索">
<i class="mdui-list-item-icon iconfont solo-search"></i>
<div class="mdui-list-item-content">搜索</div>
</a>
<a href="${servePath}/rss.xml" title="RSS">
<i class="mdui-list-item-icon iconfont solo-rss"></i>
</a>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main"
title="${adminLabel}">
<i class="mdui-list-item-icon iconfont solo-spin"></i>
</a>
<a href="${logoutURL}" title="${logoutLabel}">
<i class="mdui-list-item-icon iconfont solo-logout"></i>
</a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}">
<i class="mdui-list-item-icon iconfont solo-login"></i>
<div class="mdui-list-item-content"> ${startToUseLabel}</div>
</a>
</#if>
</div>
</div>
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">社交按钮</h3>
<div class="nexmoe-widget nexmoe-social">
<#include "../../common-template/macro-user_site.ftl"/>
<@userSite dir=""></@userSite>
</div>
</div>
<#if noticeBoard?? && 'bulletin'== customVars.key0>
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">公告栏</h3>
<div class="nexmoe-widget tagcloud">
<div class="links-of-author">
${noticeBoard}
</div>
</div>
</div>
<#elseif 0 != mostUsedTags?size>
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">${tagLabel}</h3>
<div class="nexmoe-widget tagcloud">
<#list mostUsedTags as tag>
<a rel="tag"
href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
title="${tagLabel}:${tag.tagTitle} - ${blogTitle}"
class="mdui-ripple">
${tag.tagTitle}</a>
</#list>
</div>
</div>
</#if>
<#if 0 != mostUsedCategories?size>
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">${categoryLabel}</h3>
<div class="nexmoe-widget">
<ul class="category-list">
<#list mostUsedCategories as category>
<li class="category-list-item">
<a class="category-list mdui-ripple"
href="${servePath}/category/${category.categoryURI}"
title="${category.categoryTitle} - ${blogTitle}">
${category.categoryTitle}</a>
<span class="category-list-count">${category.categoryPublishedArticleCount}</span>
</li>
</#list>
</ul>
</div>
</div>
</#if>
<#if 0 != archiveDates?size>
<div class="nexmoe-widget-wrap">
<h3 class="nexmoe-widget-title">${archiveLabel}</h3>
<div class="nexmoe-widget">
<ul class="category-list">
<#list archiveDates as archiveDate>
<li class="category-list-item">
<#if "en" == localeString?substring(0, 2)>
<a class="category-list mdui-ripple"
href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel} ${archiveLabel} - ${blogTitle}">
${archiveDate.monthName} ${archiveDate.archiveDateYear}</a><span
class="category-list-count">${archiveDate.archiveDatePublishedArticleCount}</span>
<#else>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel} ${archiveLabel} - ${blogTitle}">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}</a>
<span class="category-list-count">${archiveDate.archiveDatePublishedArticleCount}</span>
</#if>
</li>
</#list>
</ul>
</div>
</div>
</#if>
</aside>
<div class="nexmoe-copyright">
© ${year} <a href="${servePath}">${blogTitle}</a> <br/>
${footerContent} <br>
Powered by <a href="https://solo.b3log.org" target="_blank">Solo</a> <br>
Theme <a rel="friend" href="https://github.com/InkDP/solo-nexmoe" target="_blank">${skinDirName}</a>
by <a rel="friend" href="https://www.inkdp.cn" target="_blank">InkDP</a>
</div>
</div>