Skip to content

Commit 85d0746

Browse files
committed
feat: custom next version label
1 parent 33c83eb commit 85d0746

File tree

1 file changed

+2
-1
lines changed
  • packages/vuepress/vuepress-theme-titanium/components

1 file changed

+2
-1
lines changed

packages/vuepress/vuepress-theme-titanium/components/Navbar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export default {
8989
},
9090
9191
versionsDropdown () {
92+
const themeConfig = this.$site.themeConfig
9293
const currentVersion = this.$versions[0]
9394
const currentLink = this.$page.path
9495
const routes = this.$router.options.routes
@@ -114,7 +115,7 @@ export default {
114115
if (version === currentVersion) {
115116
item.subText = 'current'
116117
} else if (version === 'next') {
117-
item.text = 'master'
118+
item.text = themeConfig && themeConfig.nextVersionTitle || 'master'
118119
item.subText = 'next'
119120
}
120121
return item

0 commit comments

Comments
 (0)