From a92088a069492cbbb26b3a4e09208640ae118e98 Mon Sep 17 00:00:00 2001 From: blinkfox Date: Mon, 11 Mar 2019 00:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=94=A8=E4=BA=8E=E5=88=87=E6=8D=A2TOC?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=B1=95=E5=BC=80=E6=94=B6=E7=BC=A9=E7=9A=84?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 1 + layout/_partial/post-detail-toc.ejs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/_config.yml b/_config.yml index 512ccd1e7..966ae818e 100644 --- a/_config.yml +++ b/_config.yml @@ -103,6 +103,7 @@ socialLink: toc: enable: true heading: h2, h3, h4 + showToggleBtn: true # 是否显示切换TOC目录展开收缩的按钮 # Whether the code is broken. # 代码是否折行 diff --git a/layout/_partial/post-detail-toc.ejs b/layout/_partial/post-detail-toc.ejs index 41df5bdcb..84e844f53 100644 --- a/layout/_partial/post-detail-toc.ejs +++ b/layout/_partial/post-detail-toc.ejs @@ -98,11 +98,13 @@ +<% if (theme.toc.enable && theme.toc.showToggleBtn) { %>
+<% } %> \ No newline at end of file