Files
theme-earth/templates/modules/widgets/categories.html
2022-10-28 21:40:05 +08:00

14 lines
496 B
HTML

<div
class="w-full cursor-pointer overflow-hidden rounded-xl bg-white p-3 shadow transition-all duration-500 hover:shadow-md"
>
<h2 class="inline-flex items-center gap-2 text-base">
<span data-icon="tabler:category" class="iconify text-lg"></span>
分类目录
</h2>
<div class="mt-2" th:with="categories = ${categoryFinder.listAsTree()}">
<ul class="space-y-1">
<li th:replace="~{modules/category-tree :: single(categories=${categories})}" />
</ul>
</div>
</div>