mirror of
https://github.com/halo-dev/theme-earth.git
synced 2026-01-13 07:03:50 +08:00
添加界面的 i18n 支持。 /kind feature Fixes https://github.com/halo-dev/theme-earth/issues/198 Fixes https://github.com/halo-dev/theme-earth/issues/75 ```release-note 添加界面的 i18n 支持。 ```
14 lines
546 B
HTML
14 lines
546 B
HTML
<div
|
|
class="w-full overflow-hidden rounded-xl bg-white p-3 shadow transition-all duration-500 hover:shadow-md dark:bg-slate-800"
|
|
>
|
|
<h2 class="inline-flex items-center gap-2 text-base dark:text-slate-50">
|
|
<span class="i-tabler-category text-lg"></span>
|
|
<th:block th:text="#{widget.categories.title}"></th:block>
|
|
</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>
|