-
Notifications
You must be signed in to change notification settings - Fork 0
/
article.ftl
113 lines (98 loc) · 3.85 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
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, b3log.org & hacpai.com
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="${staticServePath}/skins/${skinDirName}/css/style.css?${staticResourceVersion}"/>
<#if previousArticlePermalink??>
<link rel="prev" title="${previousArticleTitle}" href="${servePath}${previousArticlePermalink}">
</#if>
<#if nextArticlePermalink??>
<link rel="next" title="${nextArticleTitle}" href="${servePath}${nextArticlePermalink}">
</#if>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open Sans"/>
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
</@head>
</head>
<body>
<#include "header.ftl">
<div class="wrapper" style="margin-top:0px;">
<main id="pjax">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<article class="content">
<h1>${article.articleTitle}</h1>
<div class="meta">
<span class="item">
<#setting locale="en_US">
<i class="fa fa-calendar-o" ></i>
${article.articleCreateDate?string('yyyy.MM.dd')}
</span>
<span class="item">
<i class="fa fa-code" aria-hidden="true"></i>
<#list article.articleTags?split(",") as articleTag>
<a rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}<#if articleTag_has_next>,</#if>
</a>
</#list>
</span>
<span class="item">
<i class="fa fa-battery-three-quarters"></i>
<span>${article.articleViewCount}度</span>
</span>
<span class="item">
<i class="fa fa-comment-o"></i>
<span>${article.articleCommentCount}评</span>
</span>
<div class="post-body vditor-reset">
${article.articleContent}
<#if "" != article.articleSign.signHTML?trim>
<div>
${article.articleSign.signHTML}
</div>
</#if>
</div>
</div>
</article>
<section class="pager">
<#if previousArticlePermalink??>
<a class="pre" href="${servePath}${previousArticlePermalink}" >${previousArticleTitle}</a>
</#if>
<#if nextArticlePermalink??>
<a class="next" href="${servePath}${nextArticlePermalink}"> ${nextArticleTitle}</a>
</#if>
</section>
<section id="comments1">
<div class="wrapper1 comment">
<@comments commentList=articleComments article=article></@comments>
</div>
</section>
<div > </div>
<#if pjax><!---- pjax {#pjax} end ----></#if>
</main>
</div>
<#include "footer.ftl">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
</@comment_script>
<#if pjax><!---- pjax {#pjax} end ----></#if>
</body>
</html>