mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-11 05:48:02 +02:00
Enhance footer with Facebook and Twitter buttons (#666)
* enhance footer with social media buttons * Update api-site-config.md * Update Footer.js * fix minor issue on social-footer * update facebookAppId description in api-site-config * rm heading & pad footer social button * Update api-site-config.md
This commit is contained in:
parent
f9a09072e3
commit
f8521c2fe1
5 changed files with 52 additions and 25 deletions
|
@ -113,7 +113,7 @@ class Site extends React.Component {
|
|||
}}
|
||||
/>
|
||||
)}
|
||||
{this.props.config.twitter && (
|
||||
{(this.props.config.twitter || this.props.config.twitterUsername) && (
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `window.twttr=(function(d,s, id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src='https://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js, fjs);t._e = [];t.ready = function(f) {t._e.push(f);};return t;}(document, 'script', 'twitter-wjs'));`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue