Skip to content

Commit cba13f1

Browse files
committed
docs: update for disabling navbar via front matter (#232)
1 parent 504268c commit cba13f1

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/default-theme-config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you want to use a completely custom homepage layout, you can also use a [Cust
3535

3636
## Navbar
3737

38-
The Navbar may contain your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](/guide/i18n.html#internationalization) and [Repository link](/default-theme-config/#git-repo-and-edit-links) - all of them depends on your configuration.
38+
The Navbar may contain yourg page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](../guide/i18n.md) and [Repository Link](#git-repo-and-edit-links), all of them depends on your configuration.
3939

4040
### Navbar Links
4141

docs/zh/default-theme-config/README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ footer: MIT Licensed | Copyright © 2018-present Evan You
3333

3434
## 导航栏
3535

36-
你可以通过 `themeConfig.nav` 增加一些导航链接:
36+
导航栏可能包含你的页面标题、[搜索框](#搜索框)[导航栏链接](#导航栏链接)[多语言切换](../guide/i18n.md)[仓库链接](#git-仓库和编辑链接),它们均取决于你的配置。
37+
38+
### 导航栏链接
39+
40+
你可以通过 `themeConfig.nav` 增加一些导航栏链接:
3741

3842
``` js
3943
// .vuepress/config.js
@@ -84,6 +88,16 @@ module.exports = {
8488
}
8589
```
8690

91+
### 禁用导航栏
92+
93+
你可以通过 `YAML front matter` 来禁用掉某个指定页面的导航栏:
94+
95+
``` yaml
96+
---
97+
navbar: false
98+
---
99+
```
100+
87101
## 侧边栏
88102

89103
想要使 侧边栏(Sidebar)生效,需要配置 `themeConfig.sidebar`,基本的配置,需要一个包含了多个链接的数组:

0 commit comments

Comments
 (0)