halo-theme-hao/templates/modules/bar/category.html
2024-04-12 14:35:37 +08:00

19 lines
701 B
HTML

<!-- 目录条 -->
<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>