mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
docs($theme-default): add Navbar Logo section for Default Theme Config (#1982)
This commit is contained in:
@@ -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` 增加一些导航栏链接:
|
||||
|
||||
Reference in New Issue
Block a user