forked from Raysmond/SpringBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.html
More file actions
52 lines (51 loc) · 1.89 KB
/
post.html
File metadata and controls
52 lines (51 loc) · 1.89 KB
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
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorator="layout/bootstrap4">
<head>
<meta charset="UTF-8">
<title th:text="${@viewHelper.metaTitle(post.title)}"></title>
</head>
<body>
<div layout:fragment="content">
<div class="post-page">
<div class="blog-post">
<div class="post-title text-center mt-5">
<h1 class="blog-post-title" th:text="${post.title}"></h1>
<p class="blog-post-meta text-muted">
<span>发布于</span>
<span th:text="${@viewHelper.getFormattedDate(post.getCreatedAt())}"></span>
<span>/</span>
<span>阅读</span>
<span th:text="${post.views}"></span>
</p>
</div>
<div class="row" id="post-content-wrapper" th:if="${postType}=='POST'">
<div class="col-9">
<div class="post-content pt-5">
<div th:utext="${post.renderedContent}"></div>
</div>
</div>
<div class="col-3">
<div id="post-contents" class="pt-5">
<label class="text-muted">目录</label>
</div>
</div>
</div>
<div class="row" id="post-content-wrapper" th:if="${postType}=='PAGE'">
<div class="col-12">
<div class="post-content pt-5">
<div th:utext="${post.renderedContent}"></div>
</div>
</div>
</div>
<div class="pt-3">
<hr/>
<div class="pt-2">
<div th:replace="fragments/disqus :: disqus"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>