halo-theme-hao/templates/modules/bar/category.html

19 lines
701 B
HTML
Raw Permalink Normal View History

2024-04-12 06:35:37 +00:00
<!-- 目录条 -->
<div id="category-bar">
<div class="category-bar-items" id="category-bar-items">
<div class="category-bar-item select" id="category-bar-home">
<a href="/">首页</a>
</div>
<th:block th:with="categories = ${categoryFinder.listAll()}">
<div class="category-bar-item"
th:each="categoryItem : ${categories}"
th:id="${categoryItem.spec.displayName}">
<a th:href="@{${categoryItem.status.permalink}}" th:text="${categoryItem.spec.displayName}"></a>
</div>
</th:block>
</div>
<a class="category-bar-more" th:replace="~{modules/bar/more}">更多</a>
</div>