14 lines
654 B
HTML
Raw Normal View History

2023-03-22 10:08:39 +08:00
<!DOCTYPE html>
2023-03-24 20:25:04 +08:00
<html lang="zh" xmlns:th="https://www.thymeleaf.org"
th:include="~{common/layout :: layout (title = ${site.title}, canonical = ${site.url}, content = ~{::content}, isPost = false)}">
2023-03-23 18:25:48 +08:00
<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}">
2023-03-24 20:25:04 +08:00
<th:block th:include="~{main/article_list :: articleList (${posts.items}, ${posts.first})}"/>
<th:block th:replace="~{main/pagination :: pagination (${posts}, '/index')}"/>
2023-03-23 18:25:48 +08:00
</th:block>
2023-03-22 11:00:43 +08:00
</th:block>
2023-03-23 18:25:48 +08:00
</html>