 - pageIndex gt 3)}">
                    <span>...</span>
                </span>
                <span class="page-link" th:each="index : ${#numbers.sequence(pageIndex - 1,pageIndex + 1)}"
                    th:classappend="${index eq pageIndex} ? 'current':''"
                    th:if="${(pageIndex gt 4) && (totalPages - pageIndex gt 3)}">
                    <a th:href="@{/moments}+'/page/' + ${index}"
                       th:text="${index}">
                    </a>
                </span>
        