58 lines
2.5 KiB
HTML
58 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html
|
|
xmlns:th="https://www.thymeleaf.org"
|
|
th:replace="~{modules/layout :: html(title = |${post.spec.title} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
|
>
|
|
<th:block th:fragment="content">
|
|
<article class="post">
|
|
<header>
|
|
<h1 class="post-title" th:text="${post.spec.title}">Post Title</h1>
|
|
<div class="post-meta">
|
|
<span class="post-date"
|
|
th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
|
<span class="post-author" th:text="${post.owner.displayName}">Author</span>
|
|
</div>
|
|
<span class="post-tags">
|
|
<span class="post-tag" th:each="tag : ${post.tags}">
|
|
<a data-pjax
|
|
th:href="@{${tag.status.permalink}}"
|
|
th:title="${tag.spec.displayName}"
|
|
th:text="'#'+${tag.spec.displayName}"
|
|
>#Tag
|
|
</a>
|
|
</span>
|
|
</span>
|
|
</header>
|
|
<section class="post-content">
|
|
<div th:utext="${post.content.content}" id="content">Post Content</div>
|
|
</section>
|
|
</article>
|
|
<nav id="toc" th:if="${theme.config.basic.show_toc}" class="toc">
|
|
<button id="toc-toggle" class="toc-toggle" aria-label="Hide Table of Contents"></button>
|
|
<div id="toc-content" class="toc-content"></div>
|
|
</nav>
|
|
<section class="pagination">
|
|
<div class="pagination__title">
|
|
<span class="pagination__title-h" th:text="#{page.post.pagination}">READ OTHER POSTS</span>
|
|
<hr/>
|
|
</div>
|
|
<div class="pagination__buttons" th:with="postCursor=${postFinder.cursor(post.metadata?.name)}">
|
|
<span th:if="${postCursor.hasPrevious()}">
|
|
<a data-pjax th:href="@{${postCursor.previous?.status?.permalink}}" class="button prev inline">
|
|
<span class="button__text" th:text="|< ${postCursor.previous?.spec?.title}|">prevPost</span>
|
|
</a>
|
|
</span>
|
|
<span th:if="${postCursor.hasNext()}">
|
|
<a data-pjax th:href="@{${postCursor.next?.status?.permalink}}" class="button next inline">
|
|
<span class="button__text" th:text="|${postCursor.next?.spec?.title} >|">nextPost</span>
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</section>
|
|
<section class="comment" th:if="${haloCommentEnabled}">
|
|
<h2 th:text="#{page.post.comment}">Comments</h2>
|
|
<halo:comment group="content.halo.run" kind="Post" th:attr="name=${post.metadata.name}"/>
|
|
</section>
|
|
</th:block>
|
|
</html>
|