[opt] remove toc_title

This commit is contained in:
xaoxuu 2024-01-18 12:16:41 +08:00
parent 750bbf8b19
commit 55afa6c16e
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ function layoutDiv(fallback) {
el += `<widget class="widget-wrapper toc ${type}" id="data-toc" collapse="${item.collapse}">` el += `<widget class="widget-wrapper toc ${type}" id="data-toc" collapse="${item.collapse}">`
if (page.layout !== 'wiki') { if (page.layout !== 'wiki') {
// post 布局 // post 布局
el += layoutTocHeader(page.toc_title) el += layoutTocHeader()
el += `<div class="widget-body fs14">` el += `<div class="widget-body fs14">`
el += `<div class="doc-tree active">` el += `<div class="doc-tree active">`
el += layoutTocBody() el += layoutTocBody()
@ -99,7 +99,7 @@ function layoutDiv(fallback) {
} }
} else { // 单 page } else { // 单 page
if (proj.pages.length == 1) { if (proj.pages.length == 1) {
el += layoutTocHeader(page.toc_title) el += layoutTocHeader()
} }
el += `<div class="widget-body fs14">` el += `<div class="widget-body fs14">`
el += layoutDocTree(proj.pages) el += layoutDocTree(proj.pages)