修复: 组件隐藏状态启动不生效+相册显示开关

- body class 改用 {{BODY_CLASSES}} 模板变量替换,修复隐藏状态在启动时未应用
- 相册组件添加显示/隐藏开关
This commit is contained in:
2026-05-26 12:29:32 +08:00
parent 92bca936d8
commit 0cd9cd40b4
6 changed files with 27 additions and 4 deletions

View File

@@ -367,6 +367,7 @@ body.hide-ainews #card-ainews,
body.hide-ainews #info .ainews-section { display: none !important; }
body.hide-knowledge #card-knowledge,
body.hide-knowledge #info .knowledge-section { display: none !important; }
body.hide-photo #card-photo { display: none !important; }
/* ===== 相册 ===== */
#card-photo {
@@ -418,7 +419,7 @@ body.hide-knowledge #info .knowledge-section { display: none !important; }
}
</style>
</head>
<body class="layout-{{LAYOUT}}">
<body class="layout-{{LAYOUT}} {{BODY_CLASSES}}">
{{BACKGROUND}}
<!-- ===== SINGLE 布局 ===== -->