Files
theme-earth/templates/modules/sidebar.html
Ryan Wang ecbcaf8f3a feat: add sidebar widget configurable support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-10-06 18:32:49 +08:00

10 lines
306 B
HTML

<aside class="col-span-1 hidden h-full flex-col gap-6 sm:flex">
<th:block
th:with="widgets = ${#strings.listSplit(theme.config.sidebar.widgets,',')} "
>
<th:block th:each="widget : ${widgets}">
<th:block th:replace="'modules/widgets/'+${widget}" />
</th:block>
</th:block>
</aside>