Files
theme-earth/templates/modules/sidebar.html
Ryan Wang 7e103ff3c0 Optimize settings form and remove deprecated options (#256)
* Optimize settings form and remove deprecated options

* Update required version to 2.22.0 in theme.yaml

The minimum required version for this theme has been updated from 2.20.0 to 2.22.0 to ensure compatibility with newer dependencies or features.

* Update icon rendering to use icon.value property
2025-12-24 12:09:28 +08:00

13 lines
483 B
HTML

<aside th:fragment="sidebar (prepend)" class="z-0 hidden w-72 flex-col gap-6 md:flex">
<th:block th:with="widgets = ${theme.config.sidebar.widgets} ">
<th:block th:if="${prepend != null}">
<th:block th:replace="${prepend}" />
</th:block>
<th:block th:each="widget : ${widgets}">
<th:block th:with="options = ${widget.options}">
<th:block th:replace="~{'modules/widgets/'+${widget.value}}" />
</th:block>
</th:block>
</th:block>
</aside>