文件
halo-theme/theme-terminal/templates/page.html
T
2025-06-27 18:32:09 +08:00

30 行
1.0 KiB
HTML

<!DOCTYPE html>
<html
xmlns:th="https://www.thymeleaf.org"
th:replace="~{modules/layout :: html(title = |${singlePage.spec.title} - ${site.title}|, 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>