Files
theme-earth/templates/modules/sidebar.html
Ryan Wang 235c2c20ef fix: resolve CLS issues in page layout (#209)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2024-11-17 13:25:11 +08:00

11 lines
408 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:replace="~{'modules/widgets/'+${widget.value}}" />
</th:block>
</th:block>
</aside>