nobelium-title

This commit is contained in:
tangly1024.com
2024-09-25 14:59:53 +08:00
parent a8a827768c
commit f8d1d55574

View File

@@ -14,7 +14,7 @@ import { SvgIcon } from './SvgIcon'
* 顶部导航
*/
const Nav = props => {
const { navBarTitle, fullWidth, siteInfo } = props
const { post, fullWidth, siteInfo } = props
const autoCollapseNavBar = siteConfig(
'NOBELIUM_AUTO_COLLAPSE_NAV_BAR',
true,
@@ -66,9 +66,9 @@ const Nav = props => {
)}
</div>
</Link>
{navBarTitle ? (
{post ? (
<p className='ml-2 font-medium text-gray-800 dark:text-gray-300 header-name'>
{navBarTitle}
{post?.title}
</p>
) : (
<p className='ml-2 font-medium text-gray-800 dark:text-gray-300 header-name whitespace-nowrap'>