30 行
998 B
HTML
30 行
998 B
HTML
<!DOCTYPE html>
|
|
<html
|
|
xmlns:th="https://www.thymeleaf.org"
|
|
th:replace="~{modules/layout :: html(header = null, content = ~{::content}, footer = null)}"
|
|
>
|
|
<th:block th:fragment="content">
|
|
<div class="post">
|
|
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
|
|
<div class="post-meta">
|
|
<span class="post-date" th:text="${#dates.format(singlePage.spec.publishTime,'yyyy-MM-dd')}">
|
|
publishTime
|
|
</span>
|
|
<span class="post-author" th:text="${':: '+singlePage.owner.displayName}">:: Author</span>
|
|
</div>
|
|
<div class="post-content">
|
|
<div th:utext="${singlePage.content.content}">Post Content</div>
|
|
</div>
|
|
</div>
|
|
<div th:if="${haloCommentEnabled}">
|
|
<h2>评论</h2>
|
|
<halo:comment
|
|
group="content.halo.run"
|
|
kind="SinglePage"
|
|
th:attr="name=${singlePage.metadata.name}"
|
|
colorScheme="localStorage.getItem('theme')"
|
|
/>
|
|
</div>
|
|
</th:block>
|
|
</html>
|