2023-03-24 20:25:04 +08:00

14 lines
654 B
HTML

<!DOCTYPE html>
<html lang="zh" xmlns:th="https://www.thymeleaf.org"
th:include="~{common/layout :: layout (title = ${site.title}, canonical = ${site.url}, content = ~{::content}, isPost = false)}">
<th:block th:fragment="content" th:with="isEmpty = ${#lists.isEmpty(posts)}">
<div th:if="${isEmpty}" class="card card-empty">
<i class="fa fa-inbox"></i>
还没有发表过文章
</div>
<th:block th:unless="${isEmpty}">
<th:block th:include="~{main/article_list :: articleList (${posts.items}, ${posts.first})}"/>
<th:block th:replace="~{main/pagination :: pagination (${posts}, '/index')}"/>
</th:block>
</th:block>
</html>