22 lines
1.0 KiB
HTML
Raw Normal View History

2023-03-25 12:46:08 +08:00
<!DOCTYPE html>
2023-03-25 16:28:00 +08:00
<th:block xmlns:th="https://www.thymeleaf.org"
th:insert="~{common/layout :: layout (title = ${'分类:' + category.spec.displayName + ' - ' +site.title},
2023-03-25 12:46:08 +08:00
canonical = ${category.status.permalink}, content = ~{::content}, isPost = false)}">
2023-03-25 16:28:00 +08:00
<th:block th:fragment="content" th:with="isEmpty = ${#lists.isEmpty(posts)}">
2023-03-25 12:46:08 +08:00
<div th:if="${isEmpty}" class="card card-empty">
2023-09-12 10:44:43 +08:00
<i class="ri-inbox-2-fill"></i>
2023-03-25 16:28:00 +08:00
该分类下没有文章,回<a th:href="${site.url}">主页</a>看看吧
2023-03-25 12:46:08 +08:00
</div>
<th:block th:unless="${isEmpty}">
2023-03-25 16:28:00 +08:00
<div class="card card-content main-title">
<ul class="breadcrumb">
2023-09-12 10:44:43 +08:00
<li><a th:href="@{/categories}"><i class="ri-apps-line"></i>分类</a></li>
2023-03-25 16:28:00 +08:00
<li th:text="${category.spec.displayName}"></li>
</ul>
</div>
2023-03-27 12:10:21 +08:00
<th:block th:replace="~{main/article_list :: articleList (${posts.items})}"/>
2023-03-25 16:28:00 +08:00
<th:block th:replace="~{main/pagination :: pagination (${posts}, ${category.status.permalink})}"/>
2023-03-25 12:46:08 +08:00
</th:block>
2023-03-25 16:28:00 +08:00
</th:block>
2023-03-25 12:46:08 +08:00
</th:block>