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}