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:
Endilie Yacop Sucipto 2018-05-18 12:26:06 +08:00 committed by Yangshun Tay
parent f9a09072e3
commit f8521c2fe1
5 changed files with 52 additions and 25 deletions

View file

@ -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'));`,