Skip to content

Commit 6aaff68

Browse files
CodesOfRaulivz
authored andcommitted
docs: add Navbar Logo section for Default Theme Config (close: #1932)(#1974)
1 parent 28a0ed9 commit 6aaff68

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/docs/docs/theme/default-theme-config.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ To use a fully custom homepage layout, you can also use a [Custom Layout](#custo
3737

3838
The Navbar may contain your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](../guide/i18n.md) and [Repository Link](#git-repo-and-edit-links), they all depend on your configuration.
3939

40+
### Navbar Logo
41+
42+
You can add a logo to the navbar via `themeConfig.logo`. Logo can be placed in [public folder](../guide/assets.md#public-files).
43+
44+
``` js
45+
// .vuepress/config.js
46+
module.exports = {
47+
themeConfig: {
48+
logo: '/assets/img/logo.png',
49+
}
50+
}
51+
```
52+
4053
### Navbar Links
4154

4255
You can add links to the navbar via `themeConfig.nav`:

0 commit comments

Comments
 (0)