41 lines
1.9 KiB
HTML
Raw Normal View History

2023-03-22 10:08:39 +08:00
<!DOCTYPE html>
2023-03-25 16:28:00 +08:00
<th:block xmlns:th="https://www.thymeleaf.org"
2023-03-27 12:10:21 +08:00
th:insert="~{common/layout :: layout (title = ${site.title}, canonical = ${site.url}, content = ~{::content}, isPost = false)}"
th:with="isFirstIndex = ${posts.first}">
2023-03-25 16:28:00 +08:00
<th:block th:fragment="content" th:with="isEmpty = ${#lists.isEmpty(posts)}">
<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
还没有发表过文章
</div>
<th:block th:unless="${isEmpty}">
<th:block th:replace="~{::firstIndex}"/>
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}, '/index')}"/>
</th:block>
</th:block>
2024-04-23 08:27:32 +08:00
<th:block th:if="${posts.first}" th:fragment="firstIndex">
<th:block>
2023-03-27 12:10:21 +08:00
<th:block th:replace="~{::carousel}"/>
</th:block>
2023-03-25 16:28:00 +08:00
<div th:if="${!#strings.isEmpty(theme.config.basic_info.index_inform)}" class="card tips brightness"
th:utext="${theme.config.basic_info.index_inform}"></div>
2023-03-25 16:28:00 +08:00
</th:block>
<th:block th:fragment="carousel">
2023-03-27 12:10:21 +08:00
<div th:if="${!#lists.isEmpty(theme.config.basic_style.carousel_options)}" class="card widget swiper">
<div class="swiper-wrapper">
<a th:each="option :${theme.config.basic_style.carousel_options}" class="swiper-slide bg-shadow cover-image"
th:style="'background-image: url(' + ${option.image} + ')'" th:target="${option.target}"
th:href="${option.url}">
<div class="swiper-slide-details" data-swiper-parallax="200" data-swiper-parallax-duration="600">
<p class="swiper-slide-details-title" th:text="${option.title}"></p>
</div>
</a>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
2023-03-23 18:25:48 +08:00
</th:block>
2023-03-27 12:10:21 +08:00
</th:block>