diff --git a/themes/heo/index.js b/themes/heo/index.js index 4d289924..241c66ec 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -284,7 +284,7 @@ const LayoutArchive = props => { */ const LayoutSlug = props => { const { post, lock, validPassword } = props - const { locale } = useGlobal() + const { locale, fullWidth } = useGlobal() const [hasCode, setHasCode] = useState(false) @@ -294,7 +294,7 @@ const LayoutSlug = props => { }, []) // 右侧栏 - const slotRight = + const slotRight = fullWidth ? null : const headerSlot = (
{ - + {fullWidth ? null : }
) const commentEnable = siteConfig('COMMENT_TWIKOO_ENV_ID') || siteConfig('COMMENT_WALINE_SERVER_URL') || siteConfig('COMMENT_VALINE_APP_ID') || @@ -322,7 +322,7 @@ const LayoutSlug = props => { showTag={false} slotRight={slotRight} > -
+
{lock && } {!lock && (