diff --git a/plugins/plugin-content-update/package.json b/plugins/plugin-content-update/package.json index 169aa61d..cbff24f8 100644 --- a/plugins/plugin-content-update/package.json +++ b/plugins/plugin-content-update/package.json @@ -49,6 +49,6 @@ "VuePress", "vuepress plugin", "content-update", - "vuepress-plugin-plugin-content-update" + "vuepress-plugin-content-update" ] } diff --git a/theme/src/client/components/LocalNav.vue b/theme/src/client/components/LocalNav.vue index f42fd34b..f7e29265 100644 --- a/theme/src/client/components/LocalNav.vue +++ b/theme/src/client/components/LocalNav.vue @@ -41,6 +41,7 @@ const classes = computed(() => { 'local-nav': true, 'fixed': empty.value, 'reached-top': y.value >= navHeight.value, + 'is-blog': page.value.isBlogPost, } }) @@ -98,6 +99,23 @@ const showLocalNav = computed(() => { } @media (min-width: 960px) { + .local-nav.is-blog { + display: none; + } + + .local-nav { + top: var(--vp-nav-height); + width: calc(100% - var(--vp-sidebar-width)); + margin-left: var(--vp-sidebar-width); + border-top: none; + } + + .local-nav .menu { + visibility: hidden; + } +} + +@media (min-width: 1280px) { .local-nav { display: none; } diff --git a/theme/src/client/components/Nav/NavBarExtra.vue b/theme/src/client/components/Nav/NavBarExtra.vue index bd9a3a78..bd2860be 100644 --- a/theme/src/client/components/Nav/NavBarExtra.vue +++ b/theme/src/client/components/Nav/NavBarExtra.vue @@ -33,7 +33,7 @@ const hasExtraContent = computed(
- Appearance + {{ theme.appearanceText || 'Appearance' }}