43 lines
1.9 KiB
HTML
43 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html
|
|
xmlns:th="https://www.thymeleaf.org"
|
|
th:replace="~{modules/layout :: html(title = |#{page.category.title}: ${category.spec.displayName} - ${site.title}|, header = null, content = ~{::content}, footer = null)}"
|
|
>
|
|
<th:block th:fragment="content">
|
|
<article class="post">
|
|
<header>
|
|
<h1 class="post-title"
|
|
th:with="title=${theme.config.page.category_title ?: page.category.title ?: 'Category'}"
|
|
th:text="|${title}: ${category.spec.displayName} [${category.status.visiblePostCount ?: 0}]|">
|
|
Category: Category name [n]
|
|
</h1>
|
|
</header>
|
|
<div class="post-content">
|
|
<ul>
|
|
<li class="post-list" th:each="post : ${posts.items}">
|
|
<a data-pjax th:href="@{${post.status.permalink}}">
|
|
<span th:text="${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}">Publish Time</span>
|
|
<span> :: </span>
|
|
<span class="post-list-title" th:text="${post.spec.title}">Post Title</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</article>
|
|
<nav class="pagination" th:if="${posts.hasPrevious() || posts.hasNext()}">
|
|
<div class="pagination__buttons">
|
|
<span th:if="${posts.hasPrevious()}">
|
|
<a data-pjax th:href="@{${posts.prevUrl}}" class="button inline prev">
|
|
<span class="button__text" th:text="'< ' + #{page.pagination.prev}">< Prev</span>
|
|
</a>
|
|
</span>
|
|
<span th:if="${posts.hasNext()}">
|
|
<a data-pjax th:href="@{${posts.nextUrl}}" class="button inline next">
|
|
<span class="button__text" th:text="#{page.pagination.next} + ' >'">Next ></span>
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</nav>
|
|
</th:block>
|
|
</html>
|