mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-09 14:22:27 +02:00
feat(v2): add ability to use HTML in footer copyright (#2327)
This commit is contained in:
parent
3f682046df
commit
aef2456545
3 changed files with 8 additions and 3 deletions
|
@ -105,7 +105,12 @@ function Footer() {
|
|||
)}
|
||||
</div>
|
||||
)}
|
||||
{copyright}
|
||||
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: copyright,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -188,7 +188,7 @@ module.exports = {
|
|||
alt: 'Facebook Open Source Logo',
|
||||
src: 'https://docusaurus.io/img/oss_logo.png',
|
||||
},
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, // You can also put own HTML here
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -226,7 +226,7 @@ module.exports = {
|
|||
src: 'https://docusaurus.io/img/oss_logo.png',
|
||||
href: 'https://opensource.facebook.com/',
|
||||
},
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, // You can also put own HTML here
|
||||
},
|
||||
image: 'img/docusaurus.png',
|
||||
// Equivalent to `docsSideNavCollapsible`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue