Load highlight in separate CSS call
This commit is contained in:
parent
1c7785957e
commit
e51f08c83a
3 changed files with 2 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
{{ partial "style.html" "scss/style.scss" }}
|
{{ partial "style.html" "scss/style.scss" }}
|
||||||
{{ partial "style.html" "css/font-awesome.min.css" }}
|
{{ partial "style.html" "css/font-awesome.min.css" }}
|
||||||
|
{{ partial "style.html" "css/highlight.css" }}
|
||||||
|
|
||||||
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.mi
|
||||||
|
|
||||||
browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js
|
browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js
|
||||||
cp -r $STATIC_SRC/scss $STATIC_BUILD/scss
|
cp -r $STATIC_SRC/scss $STATIC_BUILD/scss
|
||||||
hugo gen chromastyles --style=tango > $STATIC_BUILD/scss/highlight.scss
|
hugo gen chromastyles --style=tango > $STATIC_BUILD/css/highlight.css
|
||||||
|
|
||||||
hugo -vDEF --stepAnalysis --gc $HUGO_ARGS
|
hugo -vDEF --stepAnalysis --gc $HUGO_ARGS
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
@import "highlight"; // Generated by Hugo
|
|
||||||
|
|
||||||
@import "node_modules/lightgallery/src/sass/lightgallery";
|
@import "node_modules/lightgallery/src/sass/lightgallery";
|
||||||
@import "node_modules/bootstrap/scss/bootstrap";
|
@import "node_modules/bootstrap/scss/bootstrap";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue