diff --git a/layout/_partial/widgets/toc.ejs b/layout/_partial/widgets/toc.ejs index ce9564c..2555976 100644 --- a/layout/_partial/widgets/toc.ejs +++ b/layout/_partial/widgets/toc.ejs @@ -84,7 +84,9 @@ function layoutDiv(fallback) { }); } else { // 单 section - el += layoutTocHeader(page.toc_title); + if (proj.pages.length == 1) { + el += layoutTocHeader(page.toc_title); + } el += '
';