refactor: use repleater input type to define social_media

This commit is contained in:
Ryan Wang
2022-11-21 17:24:37 +08:00
parent f260f28db2
commit fd7c9250e3
9 changed files with 206 additions and 60 deletions

View File

@@ -1,10 +1,10 @@
<aside th:fragment="sidebar (prepend)" 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: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}}" />
<th:block th:replace="~{'modules/widgets/'+${widget.value}}" />
</th:block>
</th:block>
</aside>