-
Notifications
You must be signed in to change notification settings - Fork 7
/
side.ftl
94 lines (89 loc) · 3.44 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
<div class="sidebar">
<#if noticeBoard?? && (noticeBoard?length > 0)>
<section class="sidebar__container">
<div class="header">
<span>${boardLabel}</span>
</div>
<div class="board" id="board">
${noticeBoard}
</div>
</section>
</#if>
<section class="sidebar__container">
<div class="header">
<span>${searchLabel}</span>
</div>
<div class="search">
<form class="search__form" action="${servePath}/search">
<div class="input">
<input type="text" name="keyword" placeholder="输入关键字搜索">
<button type="submit"></button>
<div>
</form>
</div>
</section>
<section class="sidebar__container">
<div class="header">
<span>${aboutLabel}</span>
</div>
<main class="user">
<img class="user__avatar" src="${adminUser.userAvatar}" alt="${adminUser.userName}"/>
<div class="user__info">
<div class="item"><a href="${servePath}/archives.html">${statistic.statisticPublishedBlogArticleCount}<span class="text">${articleLabel}</span></a></div>
<div class="item"><span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span><span class="text">${viewLabel}</span></div>
<div class="item">${onlineVisitorCnt}<span class="text">${onlineVisitorLabel}</span></div>
</div>
</main>
</section>
<#if 0 != mostUsedTags?size>
<section class="sidebar__container">
<div class="header">
<span>${tagsLabel}</span>
</div>
<div class="tags rowSmallItemLayout">
<#list mostUsedTags as tag>
<a class="item" href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}">${tag.tagTitle}</a>
</#list>
</div>
</section>
</#if>
<#if 0 != archiveDates?size>
<section class="sidebar__container">
<div class="header">
<span>${archiveLabel}</span>
</div>
<div class="lists">
<#list archiveDates as archiveDate>
<#if archiveDate.archiveDatePublishedArticleCount != 0>
<#if archiveDate_index < 10>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})
</a>
<#else>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
</a>
</#if>
</#if>
</#if>
</#list>
<#if archiveDates?size > 10>
<a href="${servePath}/archives.html">...</a>
</#if>
</div>
</section>
</#if>
<section class="sidebar__container article__contents J_article__contents fn__none">
<div class="header">
<span>${articleContent}</span>
</div>
<div class="contents J_article__contents--container">
</div>
</section>
<div class="toTop J_backToTop">
<img src="${staticServePath}/skins/${skinDirName}/images/top.png" />
</div>
</div>