Skip to content

Commit

Permalink
feat(v2): add ability to use HTML in footer copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Feb 26, 2020
1 parent 756c83a commit 8ad924c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/docusaurus-theme-classic/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ function Footer() {
)}
</div>
)}
{copyright}

<div
dangerouslySetInnerHTML={{
__html: copyright,
}}
/>
</div>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docusaurus.config.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion website/docs/migrating-from-v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 8ad924c

Please sign in to comment.