Skip to content

Commit 748fa7f

Browse files
committed
fix: show navbar in more conditions (close #170)
1 parent c83b951 commit 748fa7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/default-theme/Layout.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ export default {
3636
shouldShowNavbar () {
3737
const { themeConfig } = this.$site
3838
return (
39-
this.$site.title ||
39+
this.$title ||
4040
themeConfig.logo ||
4141
themeConfig.repo ||
42-
themeConfig.nav
42+
themeConfig.nav ||
43+
this.$themeLocaleConfig.nav
4344
)
4445
},
4546
shouldShowSidebar () {

0 commit comments

Comments
 (0)