fix: 移除标题伪元素#前缀并修正目录层级
- 删除 custom.css 中给 h1/h2/h3 强加 # 前缀的 ::before 规则 - 将 X.Y 子节标题由 ## 提升为 ###,使 TOC 正确嵌套 - 新增 tools/fix-headings.js 用于批量调整标题层级
This commit is contained in:
@@ -92,10 +92,6 @@ html[data-theme="dark"] #article-container table:not(.gist table) tbody tr:nth-c
|
||||
padding-bottom: 0.3rem;
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
}
|
||||
#article-container h1::before, #article-container h2::before, #article-container h3::before {
|
||||
content: "# ";
|
||||
color: var(--btn-bg);
|
||||
}
|
||||
|
||||
/* ==================== 文章标题栏字体颜色(明亮模式) ==================== */
|
||||
html:not([data-theme="dark"]) #post-info .post-title {
|
||||
|
||||
Reference in New Issue
Block a user