From f8d1d55574ba43c4a5611b117101db201450334f Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 25 Sep 2024 14:59:53 +0800 Subject: [PATCH] nobelium-title --- themes/nobelium/components/Nav.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/nobelium/components/Nav.js b/themes/nobelium/components/Nav.js index 7f699f97..a187b7df 100644 --- a/themes/nobelium/components/Nav.js +++ b/themes/nobelium/components/Nav.js @@ -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 => { )} - {navBarTitle ? ( + {post ? (

- {navBarTitle} + {post?.title}

) : (