From 55afa6c16e31edd8093185a5c367f951e5361d5e Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 18 Jan 2024 12:16:41 +0800 Subject: [PATCH] [opt] remove toc_title --- layout/_partial/widgets/toc.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/widgets/toc.ejs b/layout/_partial/widgets/toc.ejs index 8704b95..91acb68 100644 --- a/layout/_partial/widgets/toc.ejs +++ b/layout/_partial/widgets/toc.ejs @@ -74,7 +74,7 @@ function layoutDiv(fallback) { el += `` if (page.layout !== 'wiki') { // post 布局 - el += layoutTocHeader(page.toc_title) + el += layoutTocHeader() el += `
` el += `
` el += layoutTocBody() @@ -99,7 +99,7 @@ function layoutDiv(fallback) { } } else { // 单 page if (proj.pages.length == 1) { - el += layoutTocHeader(page.toc_title) + el += layoutTocHeader() } el += `
` el += layoutDocTree(proj.pages)