Remove sourceCodeButton config key (#181)

This commit is contained in:
Héctor Ramos 2017-10-26 12:16:36 -07:00 committed by GitHub
parent db8daa635d
commit ba666cc6ae
6 changed files with 10 additions and 18 deletions

View file

@ -15,10 +15,6 @@ class Head extends React.Component {
links.map(link => {
if (link.blog) hasBlog = true;
});
const sourceCodeButton = this.props.config.sourceCodeButton;
// defaults to GitHub, but other values may be allowed in the future
const includeGitHubButton =
sourceCodeButton === "github" || sourceCodeButton == null;
const highlightDefaultVersion = '9.12.0';
const highlightConfig = this.props.config.highlight
@ -82,9 +78,6 @@ class Head extends React.Component {
title={this.props.config.title + " Blog RSS Feed"}
/>
)}
{includeGitHubButton && (
<script async defer src="https://buttons.github.io/buttons.js" />
)}
<link
rel="stylesheet"
href={`//cdnjs.cloudflare.com/ajax/libs/highlight.js/${highlightVersion}/styles/${highlightTheme}.min.css`}