docs: fix github stars button (#1588)

This commit is contained in:
Shawn Erquhart 2018-08-07 15:07:15 -04:00 committed by GitHub
parent 328ef09820
commit 32e0a9b2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,11 +10,6 @@ if (process.env.NODE_ENV === `production`) {
}
}
const JS_NPM_URLS = [
'https://buttons.github.io/buttons.js',
'//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js'
];
module.exports = class HTML extends React.Component {
render() {
let css;
@ -27,8 +22,6 @@ module.exports = class HTML extends React.Component {
);
}
const js = JS_NPM_URLS.map(src => <script key={src} src={src} />);
return (
<html {...this.props.htmlAttributes}>
<head>
@ -78,7 +71,8 @@ module.exports = class HTML extends React.Component {
/>
{this.props.postBodyComponents}
<Gitter room="netlify/NetlifyCMS" />
{js}
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js"></script>
</body>
</html>
);