Skip to content

docs($cn): add Navbar Logo section for Default Theme Config #1982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/docs/docs/zh/theme/default-theme-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 增加一些导航栏链接:
Expand Down