Skip to content

Commit c040148

Browse files
committed
HEO 一点点优化
1 parent 544b769 commit c040148

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

themes/heo/components/Header.js

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ const Header = props => {
132132
}
133133
`}</style>
134134

135+
{/* fixed时留白高度 */}
136+
{fixedNav && !document?.querySelector('#post-bg') && (
137+
<div className='h-16'></div>
138+
)}
139+
135140
{/* 顶部导航菜单栏 */}
136141
<nav
137142
id='nav'

themes/heo/components/PostHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function PostHeader({ post, siteInfo, isDarkMode }) {
5959
id='post-info'
6060
className='absolute top-48 z-10 flex flex-col space-y-4 lg:-mt-12 w-full max-w-[86rem] px-5'>
6161
{/* 分类+标签 */}
62-
<div className='flex justify-center md:justify-start items-center'>
62+
<div className='flex justify-center md:justify-start items-center gap-4'>
6363
{post.category && (
6464
<>
6565
<Link

0 commit comments

Comments
 (0)