HEO 一点点优化

This commit is contained in:
tangly1024.com
2024-05-29 17:25:06 +08:00
parent 544b769b32
commit c040148406
2 changed files with 6 additions and 1 deletions

View File

@@ -132,6 +132,11 @@ const Header = props => {
}
`}</style>
{/* fixed时留白高度 */}
{fixedNav && !document?.querySelector('#post-bg') && (
<div className='h-16'></div>
)}
{/* 顶部导航菜单栏 */}
<nav
id='nav'

View File

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