Skip to content

Commit

Permalink
docs: update for disabling navbar via front matter (vuejs#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 24, 2018
1 parent 504268c commit cba13f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/default-theme-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you want to use a completely custom homepage layout, you can also use a [Cust

## Navbar

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.
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.

### Navbar Links

Expand Down
16 changes: 15 additions & 1 deletion docs/zh/default-theme-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ footer: MIT Licensed | Copyright © 2018-present Evan You

## 导航栏

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

### 导航栏链接

你可以通过 `themeConfig.nav` 增加一些导航栏链接:

``` js
// .vuepress/config.js
Expand Down Expand Up @@ -84,6 +88,16 @@ module.exports = {
}
```

### 禁用导航栏

你可以通过 `YAML front matter` 来禁用掉某个指定页面的导航栏:

``` yaml
---
navbar: false
---
```

## 侧边栏

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

0 comments on commit cba13f1

Please sign in to comment.