fix(v2): fix link to logo in footer (#1854)

* fix(v2): fix link to logo

* Update CHANGELOG-2.x.md

* Update CHANGELOG-2.x.md

Co-Authored-By: Endi <endiliey@gmail.com>
This commit is contained in:
Alexey Pyltsyn 2019-10-18 12:27:33 +03:00 committed by Endi
parent 1f6db3dd5b
commit bb6b02c487
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- Fix `swizzle` command not passing context properly to theme packages.
- Add `extendCli` api for plugins. This will allow plugin to further extend Docusaurus CLI.
- Fix `swizzle` command not being able to swizzle single js file.
- Fix logo URL in footer to be appended with baseUrl automatically.
## 2.0.0-alpha.27

View file

@ -69,7 +69,11 @@ function Footer() {
<div className="text--center">
{logo && logo.src && (
<div className="margin-bottom--sm">
<img className="footer__logo" alt={logo.alt} src={logo.src} />
<img
className="footer__logo"
alt={logo.alt}
src={withBaseUrl(logo.src)}
/>
</div>
)}
{copyright}