mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
feat(v2): allow specify custom link for logo (#2253)
* feat(v2): allow specify custom link for logo * Improve naming * Improve naming: link -> href
This commit is contained in:
parent
e27c8d0d0b
commit
daa9a6a044
2 changed files with 20 additions and 6 deletions
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
|
||||
### Navbar Title & Logo
|
||||
|
||||
You can add a logo and title to the navbar via `themeConfig.navbar`. Logo can be placed in [static folder](static-assets.md).
|
||||
You can add a logo and title to the navbar via `themeConfig.navbar`. Logo can be placed in [static folder](static-assets.md). Logo URL is set to base URL of your site by default. Although you can specify your own URL for the logo, if it is an external link, it will open in a new tab.
|
||||
|
||||
```js
|
||||
// docusaurus.config.js
|
||||
|
@ -57,6 +57,7 @@ module.exports = {
|
|||
logo: {
|
||||
alt: 'Site Logo',
|
||||
src: 'img/logo.svg',
|
||||
href: 'https://v2.docusaurus.io/', // default to siteConfig.baseUrl
|
||||
},
|
||||
},
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue