diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js index b0e775a5..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) } @@ -46,7 +45,7 @@ export const LayoutSlug = props => { >
-
+
{lock && } @@ -91,17 +90,23 @@ export const LayoutSlug = props => {
}
{post.type === 'Post' && } + + {post?.toc?.length > 0 &&
+
+
+
+ +
+
+
+
} +
-
-
- {show && } -
-