hexo 主题支持全屏文章,隐藏侧边组件

This commit is contained in:
tangly1024
2023-12-30 17:19:21 +08:00
parent b970182403
commit b15d5f7c2c
4 changed files with 16 additions and 4 deletions

View File

@@ -38,6 +38,12 @@ export default function SideRight(props) {
} = props
const { locale } = useGlobal()
// 文章全屏处理
if (post && post?.fullWidth) {
return null
}
return (
<div id='sideRight' className={'space-y-4 lg:w-80 lg:pt-0 px-2 pt-4'}>
<InfoCard {...props} />