mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 07:26:46 +00:00
hexo 主题支持全屏文章,隐藏侧边组件
This commit is contained in:
@@ -12,6 +12,12 @@ export default function PostHeader({ post, siteInfo }) {
|
||||
if (!post) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
// 文章全屏隐藏标头
|
||||
if (post.fullWidth) {
|
||||
return <div className='my-8'/>
|
||||
}
|
||||
|
||||
const headerImage = post?.pageCover ? post.pageCover : siteInfo?.pageCover
|
||||
|
||||
return (
|
||||
|
||||
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user