docs($theme-default): add Navbar Logo section for Default Theme Config (#1982)

This commit is contained in:
Billyyyyy3320
2019-10-28 10:02:14 +08:00
committed by meteorlxy
parent 89a4a8d954
commit ba7f586e2e
@@ -33,6 +33,19 @@ footer: MIT Licensed | Copyright © 2018-present Evan You
导航栏可能包含你的页面标题、[搜索框](#搜索框)、 [导航栏链接](#导航栏链接)、[多语言切换](../guide/i18n.md)、[仓库链接](#git-仓库和编辑链接),它们均取决于你的配置。
### 导航栏 Logo
你可以通过 `themeConfig.logo` 增加导航栏 Logo ,Logo 可以被放置在[公共文件目录](../guide/assets.md#public-files)
``` js
// .vuepress/config.js
module.exports = {
themeConfig: {
logo: '/assets/img/logo.png',
}
}
```
### 导航栏链接
你可以通过 `themeConfig.nav` 增加一些导航栏链接: