From 2b17c47628e5d78bc74bd47b9eb5ae8b7d8fb178 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 28 Nov 2023 17:41:52 +0800 Subject: [PATCH] [fix] section title --- layout/_partial/widgets/toc.ejs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 += '
'; el += layoutDocTree(proj.pages); el += '
';