mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 13:09:40 +08:00
优化 侧边栏
This commit is contained in:
parent
ea77fc04f8
commit
0b33ecb904
@ -4165,10 +4165,6 @@ button.swiper-pagination-bullet {
|
||||
}
|
||||
}
|
||||
|
||||
.container:not(.two-column) .column-right {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.is-hidden-not-desktop {
|
||||
display: none !important;
|
||||
}
|
||||
|
@ -2,17 +2,6 @@ window.encrypt = (str) => window.btoa(unescape(encodeURIComponent(str)))
|
||||
window.decrypt = (str) => decodeURIComponent(escape(window.atob(str)))
|
||||
|
||||
const commonContext = {
|
||||
/* 初始化widget */
|
||||
initWidget() {
|
||||
const $columnRight = $('.columns .column-right')
|
||||
const $columnRightShadow = $('.columns .column-right-shadow')
|
||||
// 实现将右边widget拷贝的左边
|
||||
if ($columnRight.length && $columnRightShadow.length && !$columnRightShadow[0].children.length) {
|
||||
for (const child of $columnRight[0].children) {
|
||||
$columnRightShadow[0].append(child.cloneNode(true))
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 初始化目录和公告模块 */
|
||||
initTocAndNotice() {
|
||||
const {pathname} = location
|
||||
|
2
templates/assets/css/style.min.css
vendored
2
templates/assets/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
4
templates/assets/js/common.min.js
vendored
4
templates/assets/js/common.min.js
vendored
File diff suppressed because one or more lines are too long
2
templates/assets/js/mew-custom.min.js
vendored
2
templates/assets/js/mew-custom.min.js
vendored
File diff suppressed because one or more lines are too long
@ -7,6 +7,4 @@
|
||||
<th:block th:replace="~{${'/widget/' + sidebar.type} :: widget ( sidebar = ${sidebar})}" />
|
||||
</th:block>
|
||||
</th:block>
|
||||
<div th:if="${position == 'left'}" class="column-right-shadow is-hidden-desktop">
|
||||
</div>
|
||||
</aside>
|
@ -30,7 +30,7 @@ spec:
|
||||
settingName: theme-dream2-plus-setting
|
||||
configMapName: theme-dream2-plus-configMap
|
||||
# 版本号
|
||||
version: 1.4.0.beta2
|
||||
version: 1.4.0.beta3
|
||||
# 最低支持的 Halo 版本
|
||||
require: ">=2.20.0"
|
||||
# 许可
|
||||
|
Loading…
x
Reference in New Issue
Block a user