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

19 lines
728 B
HTML
Raw Permalink Normal View History

2024-04-12 06:35:37 +00:00
<!-- 目录条,这里使用和 category-bar 同样的 css -->
<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="customUrls = ${theme.config.layout.navs.navCustomUrl}">
<div class="category-bar-item"
th:each="customUrlItem : ${customUrls}"
th:id="${customUrlItem.title}">
<a th:href="@{${customUrlItem.url}}" th:text="${customUrlItem.title}"></a>
</div>
</th:block>
</div>
<a class="category-bar-more" th:replace="~{modules/bar/more}">更多</a>
</div>