Files
halo_theme_terminal/templates/category.html
T

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.categories_page.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>&nbsp;::&nbsp;</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}">&lt;&nbsp;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&nbsp;&gt;</span>
</a>
</span>
</div>
</nav>
</th:block>
</html>