From 748fa7f7ee0a11d7b572c2137b734c348958a998 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 20 Apr 2018 09:29:12 -0400 Subject: [PATCH] fix: show navbar in more conditions (close #170) --- lib/default-theme/Layout.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/default-theme/Layout.vue b/lib/default-theme/Layout.vue index b7ee3d6e86..1119d8cf61 100644 --- a/lib/default-theme/Layout.vue +++ b/lib/default-theme/Layout.vue @@ -36,10 +36,11 @@ export default { shouldShowNavbar () { const { themeConfig } = this.$site return ( - this.$site.title || + this.$title || themeConfig.logo || themeConfig.repo || - themeConfig.nav + themeConfig.nav || + this.$themeLocaleConfig.nav ) }, shouldShowSidebar () {