                    </a>
                </span>
            </nav>
        </th:block>

    </th:block>
    <th:block th:if="${pageType == 'category'}" th:fragment="category">

        <th:block
                th:if="${posts.hasPrevious() || posts.hasNext()}"
                th:with="totalPages = ${posts.totalPages}, pageIndex = ${posts.page}">
            <!--        页面总数小于等于7-->
            <nav class=pagination th:if="${(totalPages le 7) && (totalPages gt 0)}">

                <span cl