diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js
index 0d872286..f11a2703 100644
--- a/themes/matery/LayoutSlug.js
+++ b/themes/matery/LayoutSlug.js
@@ -18,7 +18,6 @@ export const LayoutSlug = props => {
const scrollListener = () => {
const scrollY = window.pageYOffset
const shouldShow = scrollY > 220 && post?.toc?.length > 0
-
if (shouldShow !== show) {
switchShow(shouldShow)
}
@@ -45,12 +44,12 @@ export const LayoutSlug = props => {
showTag={false}
>
-
-
+
+
{lock &&
}
- {!lock &&
+ {!lock &&
{post?.type === 'Post' && <>
@@ -91,17 +90,23 @@ export const LayoutSlug = props => {
}
{post.type === 'Post' &&
}
+
+ {post?.toc?.length > 0 &&
}
+
-