From ad736e1ef933c15d2c135d9ad4aa3430d29e272c Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 14 Feb 2022 09:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=98=BE=E7=A4=BA=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/LayoutSlug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/Medium/LayoutSlug.js b/themes/Medium/LayoutSlug.js index c0dd5a93..366049e7 100644 --- a/themes/Medium/LayoutSlug.js +++ b/themes/Medium/LayoutSlug.js @@ -56,7 +56,7 @@ export const LayoutSlug = (props) => { } }) - const slotRight = post?.toc &&
+ const slotRight = post?.toc && post?.toc?.length > 3 &&
return

{post?.title}