-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.html
178 lines (159 loc) · 7.56 KB
/
detail.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
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
176
177
178
<!doctype html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="~{theme/breezyCV/layout}">
<head>
<link rel="stylesheet" th:href="@{${baseLink} + '/source/js/overshare/css/share.min.css'}"/>
<link rel="stylesheet" th:href="@{${baseLink} + '/source/fonts/font-awesome/css/font-awesome.min.css'}" />
<style>
body {
background: #fff;
overflow: auto;
}
.post-thumbnail img {
object-fit: cover;
position: relative;
}
.post-thumbnail .post-title {
position: absolute;
width: 100%;
top: 50%;
transform: translateY(-50%);
text-align: center;
z-index: 2;
color: #fff;
}
@media (max-width: 767px) {
.post-thumbnail img {
height: 200px;
}
.post-thumbnail .post-title {
font-size: 14px;
}
.single-page-content {
padding: 30px;
}
}
.post-thumbnail::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
top: 0;
background: rgba(0, 0, 0, 0.7);
opacity: 0.3;
}
strong, .entry-share a {
word-wrap: break-word;
}
.post-content a {
position: relative !important;
}
.social-share .social-share-icon {
border: 1px solid #666;
color: #666;
width: 24px;
height: 24px;
font-size: 14px;
line-height: 24px;
border-radius: 0;
}
</style>
</head>
<body>
<div layout:fragment="content">
<div class="page-title">
<h2><a href="javascript:void(0)" onclick="history.go(-1)">返回</a></h2>
<span class="to-top hidden" id="toTop"><i class="lnr lnr-chevron-up"></i></span>
</div>
<div class="single-page-area">
<div class="single-page-content">
<div class="section-content">
<div class="post-thumbnail">
<img th:src="@{${post.coverUrl}}" alt="image" width="100%" height="320px">
<h2 class="post-title" th:text="${post.title}"></h2>
</div>
<div class="post-content">
<!-- /Entry header -->
<header class="entry-header">
<!-- Entry meta -->
<div class="entry-meta entry-meta-top">
<div class="alert alert-danger" th:if="${post.reprint == true}">
<ul class="post-copyright">
<li>
<strong>原作者:</strong> <b>[[${post.author}]]</b>
</li>
<li>
<strong>原文链接:</strong> <a class="alert-link" th:href="@{${post.reprintLink}}" target="_blank" th:text="${post.reprintLink}"></a>
</li>
</ul>
</div>
<span><a href="javascript:void(0)" rel="category tag">正文: </a></span>
<span class="pull-right"><i class="fa fa-eye"></i> [[${post.readNum}]]</span>
</div>
<!-- /Entry meta -->
</header>
<!-- /Entry header -->
<!-- Entry content -->
<div class="entry-content">
<div class="row">
<div class=" col-xs-12 col-sm-12 ">
<div class="col-inner" th:utext="${post.contentHtml}"></div>
</div>
</div>
</div>
<!-- /Entry content -->
<div>
<button class="praise-btn" id="priseBtn" th:data-id="${post.id}">
<i class="lnr lnr-thumbs-up"></i>
<span id="prizeCount" th:text="${post.praiseNum}"></span>
</button>
</div>
<div class="alert alert-info" role="alert">
<ul class="post-copyright">
<li>
<strong>本文作者:</strong> <b>[[${#servletContext.getAttribute('configMap')['blog_author']}]]</b>
</li>
<li>
<strong>本文链接:</strong> <a id="shareUrl" class="alert-link" th:href="@{${#servletContext.getAttribute('configMap')['home_page']} + '/'+${post.link}}" target="_blank" th:text="${#servletContext.getAttribute('configMap')['home_page']+'/'+ post.link}"></a>
</li>
<li>
<strong>版权声明:</strong> 本博客所有文章除特别声明外均为原创,采用 <a th:href="@{${#servletContext.getAttribute('configMap')['license_url']}}" class="alert-link" target="_blank" th:text="${#servletContext.getAttribute('configMap')['license']}"></a> 许可协议。转载请在文章开头明显位置注明原文链接和作者等相关信息,明确指出修改(如有),并通过 E-mail 等方式告知,谢谢合作!
</li>
</ul>
</div>
<div class="entry-meta entry-meta-bottom">
<div class="date-author">
<span class="entry-date">
<a href="#" rel="bookmark">
<i class="far fa-clock"></i> <span th:text="${post.publishDate}"> </span>
</a>
</span>
<span class="author vcard">
<a class="url fn n" href="#" rel="author"> <i class="fas fa-user"></i> [[${post.author}]]</a>
</span>
</div>
<!-- Share Buttons -->
<div id="shareBtns" class="entry-share btn-group share-buttons social-share" data-initialized="true">
<a href="#" class="social-share-icon icon-weibo"></a>
<a href="#" class="social-share-icon icon-qq"></a>
<a href="#" class="social-share-icon icon-qzone"></a>
<a href="#" class="social-share-icon icon-wechat"></a>
</div>
<!-- /Share Buttons -->
</div>
<div class="post-tags">
<div class="tags" th:if="${#strings.isEmpty(post.tags) == false}">
<a th:href="@{'/tags/'+${tag}+'/'}" rel="tag" th:each="tag,status : ${#strings.arraySplit(post.tags, ',')}" th:text="${tag}"></a>
</div>
</div>
<!-- 评论 -->
<script type="text/javascript" th:inline="javascript">
window.canComment = [[${post.comment}]];
</script>
<div th:replace="~{theme/breezyCV/common :: comment(${post.comment})}"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>