diff --git a/lib/core/Site.js b/lib/core/Site.js index 0d1671032b..4ae6145034 100644 --- a/lib/core/Site.js +++ b/lib/core/Site.js @@ -32,10 +32,12 @@ class Site extends React.Component { (this.props.url || "index.html"); let latestVersion; - const highlightDefaultVersion = '9.12.0'; - const highlightConfig = this.props.config.highlight - || { version: highlightDefaultVersion, theme: 'default' }; - const highlightVersion = highlightConfig.version || highlightDefaultVersion; + const highlightDefaultVersion = "9.12.0"; + const highlightConfig = this.props.config.highlight || { + version: highlightDefaultVersion, + theme: "default" + }; + const highlightVersion = highlightConfig.version || highlightDefaultVersion; if (fs.existsSync(CWD + "/versions.json")) { latestVersion = require(CWD + "/versions.json")[0]; } @@ -62,7 +64,7 @@ class Site extends React.Component { {this.props.config.algolia && (