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

19 lines
762 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:each="customCategory : ${theme.config.layout.navs.navCustomCategory}">
<div class="category-bar-item"
th:each="categoryItem : ${categoryFinder.getByName(customCategory.category)}"
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>