Skip to content

Commit

Permalink
feat(theme): rename navTitle to navbarTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Apr 17, 2024
1 parent 9426e66 commit 416395e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/theme/src/.vuepress/theme.ts
Expand Up @@ -21,7 +21,7 @@ export default theme(

fullscreen: true,

navTitle: false,
navbarTitle: "",

extraLocales: {
Русский: "https://theme-hope-ru.vuejs.press/:route",
Expand Down
6 changes: 3 additions & 3 deletions docs/theme/src/config/theme/layout.md
Expand Up @@ -75,12 +75,12 @@ Navbar logo, should be absolute path relative to `.vuepress/public` folder.

Navbar logo in darkmode, should be absolute path relative to `.vuepress/public` folder.

### navTitle
### navbarTitle

- Type: `string | false`
- Type: `string`
- Default: `$siteLocale.title`

Navbar title
Navbar title, you can set it to an empty string to hide it.

### repo

Expand Down
6 changes: 3 additions & 3 deletions docs/theme/src/zh/config/theme/layout.md
Expand Up @@ -75,12 +75,12 @@ tag:

夜间模式下导航栏图标,应为基于 `.vuepress/public` 文件夹的绝对路径。

### navTitle
### navbarTitle

- 类型: `string | false`
- 类型: `string`
- 默认值: `$siteLocale.title`

导航栏标题
导航栏标题,你可以设置为 `''` 来隐藏它。

### repo

Expand Down
Expand Up @@ -25,7 +25,7 @@ export default defineComponent({

const siteTitle = computed(() => siteLocale.value.title);
const siteBrandTitle = computed(
() => themeLocale.value.navTitle ?? siteTitle.value,
() => themeLocale.value.navbarTitle ?? siteTitle.value,
);

const siteBrandLogo = computed(() =>
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/shared/options/layout/navbar.ts
Expand Up @@ -85,7 +85,7 @@ export interface NavbarLocaleOptions {
*
* @default $siteLocale.title
*/
navTitle?: string | false;
navbarTitle?: string;

/**
* Repository link
Expand Down

0 comments on commit 416395e

Please sign in to comment.