-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patharticle.ftl
136 lines (127 loc) · 5.93 KB
/
article.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
<#--
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/>.
-->
<#include "../../common-template/macro-common_head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
<@head title="${article.articleTitle} - ${blogTitle}" description="${article.articleAbstract?html}">
<link rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/base.css?${staticResourceVersion}"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/mdui.min.css">
<link rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/font-icon.css?${staticResourceVersion}">
</@head>
</head>
<body class="mdui-drawer-body-left mdui-loaded">
<div id="nexmoe-background">
<#include "header.ftl">
</div>
<div id="nexmoe-header">
<#include "side.ftl">
</div>
<div id="nexmoe-content">
<div class="nexmoe-primary">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="nexmoe-post">
<div class="nexmoe-post-cover">
<img src="${article.articleImg1URL}" alt="${article.articleTitle}"
data-src="${article.articleImg1URL}" class=" ls-is-cached lazyloaded">
<h1>${article.articleTitle}</h1>
</div>
<div class="nexmoe-post-meta">
<span>
<i class="nexmoefont iconfont solo-calendarl"></i>${article.articleUpdateDate?string("yyyy年MM月dd日")}
</span>
<span>
<i class="nexmoefont iconfont solo-heat"></i>
<b class="notb" data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</b> °C
</span>
<#if article.articleCommentCount != 0>
<span>
<i class="nexmoefont iconfont solo-comment"></i>
<b class="notb" data-uvstatcmt="${article.oId}">${article.articleCommentCount}</b>
</span>
</#if>
<#list article.articleTags?split(",") as articleTag>
<#if articleTag_index == 0>
<#if article.category??>
<span>
<a class="nexmoefont iconfont solo-category "
href="${servePath}/category/${article.category.categoryURI}">${article.category.categoryTitle}</a>
</span>
</#if>
</#if>
<span>
<a class="nexmoefont iconfont solo-tag "
href="${servePath}/tags/${articleTag?url('UTF-8')}">${articleTag}</a>
</span>
</#list>
</div>
<article>
<div class="vditor-reset">
${article.articleContent}
</div>
</article>
<#if "" != article.articleSign.signHTML?trim>
<div class="nexmoe-post-copyright">
<i class="mdui-list-item-icon iconfont solo-about2"></i>
${article.articleSign.signHTML}
</div>
</#if>
</div>
<div class="post__toc">
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
<#include "../../common-template/toc.ftl"/>
</#if>
</div>
<#if commentable>
<div id="b3logsolocomments"></div>
<div id="vcomment" style="padding: 30px 0;" data-name="${article.authorName}" data-postId="${article.oId}"></div>
<#if !staticSite>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
</#if>
</#if>
<#if pjax><!---- pjax {#pjax} end ----></#if>
</main>
<#if "" != noticeBoard>
<div class="nexmoe-hitokoto">
<p id="hitokoto">${blogSubtitle}</p>
</div>
</#if>
<div class="back-to-top iconfont solo-gotop" onclick="Util.goTop()"></div>
</div>
</div>
<#include "footer.ftl">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles('<h3>RECOMMEND POSTS</h3>');
</#if>
<#if 0 != externalRelevantArticlesDisplayCount>
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>",
'<h3>HACPAI POSTS</h3>');
</#if>
<#if 0 != relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}', '<h3>RELEVANT POSTS</h3>');
</#if>
Skin.initArticle()
</@comment_script>
<#if pjax><!---- pjax {#pjax} end ----></#if>
</body>
</html>