mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
chore: 侧边栏内容适配
This commit is contained in:
parent
c34bc90e35
commit
313bf70c1c
@ -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>
|
Loading…
x
Reference in New Issue
Block a user