文章详细页实现全局DOM加载

This commit is contained in:
2026-08-30 20:02:19 +08:00
parent b161d6e5c8
commit 95540ea32c
11 changed files with 13 additions and 282 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ trait ScriptsPart1b {
// 评论区样式(硬切换后全部自有):任何会渲染评论区的 singular
// (普通文章 / 资源型 post / 启用评论的页面)统一加载 build 聚合。
// 缺失时手机端 .mobile-fixed 抽屉规则不生效,表单会按文档流直接显示。
// 缺失时评论表单/列表会失去自有布局规则,按文档流裸显示。
if (is_singular() && !empty($singular_assets['needs_comments'])) {
$comments_filename = file_exists(get_template_directory() . '/assets/css/build/comments.min.css')
? 'comments.min.css'