From 5263976ad3431094375e537462adebcdb49f3762 Mon Sep 17 00:00:00 2001 From: Ricky Vetter Date: Mon, 30 Oct 2017 10:55:39 -0700 Subject: [PATCH] move main.css below hljs css (#195) --- lib/core/Head.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/core/Head.js b/lib/core/Head.js index 4201e6f790..922053bd0b 100644 --- a/lib/core/Head.js +++ b/lib/core/Head.js @@ -17,9 +17,9 @@ class Head extends React.Component { }); const highlightDefaultVersion = '9.12.0'; - const highlightConfig = this.props.config.highlight + const highlightConfig = this.props.config.highlight || { version: highlightDefaultVersion, theme: 'default' }; - const highlightVersion = highlightConfig.version || highlightDefaultVersion; + const highlightVersion = highlightConfig.version || highlightDefaultVersion; const highlightTheme = highlightConfig.theme || 'default'; const hasCustomScripts = this.props.config.scripts; @@ -60,7 +60,7 @@ class Head extends React.Component { )} {hasBlog && ( )} + + {/* Site defined code. Keep these at the end to avoid overriding. */} {hasCustomScripts && this.props.config.scripts.map(function(source) { return (