theme-quark/templates/modules/category-tree.html
2025-04-14 16:07:03 +00:00

11 lines
542 B
HTML

<ul class="category-list" th:fragment="next (categories)">
<li class="category-item" th:fragment="single (categories)" th:each="category : ${categories}">
<a class="category-link" th:href="@{${category.status.permalink}}">
<span class="category-name" th:text="${category.spec.displayName}"> </span>
</a>
<th:block th:if="${not #lists.isEmpty(category.children)}">
<th:block th:replace="~{modules/category-tree :: next (categories=${category.children})}"></th:block>
</th:block>
</li>
</ul>