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}
) : (