mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
Blog enhancements (#80)
* Small CSS adjustments. * Blog adjustments. * Add support for Prism in the blog
This commit is contained in:
parent
a484893c4f
commit
45f6ef8fd9
7 changed files with 80 additions and 2 deletions
|
@ -75,6 +75,21 @@ class Site extends React.Component {
|
|||
`
|
||||
}}
|
||||
/>}
|
||||
{this.props.config.facebookAppId &&
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `window.fbAsyncInit = function() {FB.init({appId:'${this.props.config.facebookAppId}',xfbml:true,version:'v2.7'});};(function(d, s, id){var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) {return;}js = d.createElement(s); js.id = id;js.src = '//connect.facebook.net/en_US/sdk.js';fjs.parentNode.insertBefore(js, fjs);}(document, 'script','facebook-jssdk'));
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
}
|
||||
{this.props.config.twitter &&
|
||||
<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'));`,
|
||||
}}
|
||||
/>
|
||||
}
|
||||
{this.props.config.algolia &&
|
||||
(this.props.config.algolia.algoliaOptions
|
||||
? <script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue