1.2.5原版
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="https://www.thymeleaf.org"
|
||||
th:replace="~{modules/layouts/layout :: layout(_head = null,_content = ~{::content},_title = ${'分类' + ': ' + category.spec.displayName + ' - ' + site.title})}">
|
||||
|
||||
<th:block th:fragment="content">
|
||||
|
||||
<div class="page_main uk-width-2-3@m">
|
||||
|
||||
<th:block th:replace="~{modules/header}"/>
|
||||
|
||||
<div id="pjax-container">
|
||||
|
||||
<main id="primary" class="site-main">
|
||||
<div class="archive_main" uk-height-viewport="offset-top: true">
|
||||
|
||||
<header class="page-header">
|
||||
<div class="cat_img"><img
|
||||
th:src="${not #strings.isEmpty(category.spec.cover) ? thumbnail.gen(category.spec.cover, 's') : theme.config.post.category_banner}">
|
||||
</div>
|
||||
<div class="cat_title">
|
||||
<h1 class="page-title">分类: <span>[[${category.spec.displayName}]]</span></h1>
|
||||
<div class="archive-description" th:text="${category.spec.description}"></div>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
<div id="post_item" class="archive_list norpost_list " th:with='postItems=${posts.items}'
|
||||
th:classappend="${theme.config.post.post_list_type == 'grid' ? 'uk-grid-small uk-grid' : ''}">
|
||||
|
||||
<th:block th:replace="~{'macro/tpl/content-post'}"></th:block>
|
||||
|
||||
<th:block th:if="${#lists.isEmpty(postItems)}">
|
||||
<th:block th:replace="~{macro/tpl/content-none}"/>
|
||||
</th:block>
|
||||
</div>
|
||||
|
||||
<div th:if="${posts.hasNext}" class="arc_pagenav">
|
||||
<a th:data="@{${posts.nextUrl}}" th:text="${theme.config.base_set.site_page}"></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
|
||||
<th:block th:replace="~{modules/footer-main}"/>
|
||||
|
||||
</div>
|
||||
</th:block>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user