chore: 侧边栏内容适配

This commit is contained in:
nineya 2023-03-22 14:57:52 +08:00
parent c34bc90e35
commit 313bf70c1c
13 changed files with 7 additions and 17 deletions

View File

@ -1,21 +1,11 @@
<aside xmlns:th="https://www.thymeleaf.org" <aside xmlns:th="https://www.thymeleaf.org"
th:fragment="widget (position)" th:fragment="widget (position)"
class="column column-side column-${position} ${settings[position+'_sidebar_sticky']!'none'}-sticky"> class="column column-side column-${position} ${settings[position+'_sidebar_sticky']!'none'}-sticky">
<!-- <#assign sidebar_list=[]>--> <th:block th:each="sidebar :${theme.config.sidebar.sidebar_show}">
<!-- <#list settings?keys as key>--> <th:block th:if="${sidebar.position == position}">
<!-- <#if key?index_of('sidebar_priority_') != -1>--> <th:block th:replace="${'/widget/' + sidebar.type}" />
<!-- <#assign property = "sidebar_" + key?substring(17)>--> </th:block>
<!-- <#if settings[property]?? && settings[property] == position>--> </th:block>
<!-- <#assign priority = settings[key]!'0'?number>--> <div th:if="${position == 'left'}" class="column-right-shadow is-hidden-desktop">
<!-- <#assign sidebar_list=sidebar_list + [{"property": "${key?substring(17)}", "priority": "${priority}"}]>--> </div>
<!-- </#if>-->
<!-- </#if>-->
<!-- </#list>-->
<!-- <#list sidebar_list?sort_by('priority')?reverse as sidebar>-->
<!-- <#include "../widget/${sidebar.property}.ftl">-->
<!-- </#list>-->
<!-- <#if position == 'left'>-->
<!-- <div class="column-right-shadow is-hidden-desktop">-->
<!-- </div>-->
<!-- </#if>-->
</aside> </aside>