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

@@ -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 (