move the syntax highlighting theme choice to the scss file ()

* move the syntax highlighting theme choice to the scss file
Fixes 

* move the syntax highlighting theme choice to the scss file
Fixes 
This commit is contained in:
slashformotion 2021-08-21 15:31:28 +02:00 committed by GitHub
commit 4432cb953b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 16 deletions

View file

@ -15,3 +15,9 @@
@import "components/header";
@import "components/meta";
// Look at this https://gohugo.io/hugo-pipes/resource-from-template/#readout
{{ if and (isset .Site.Params "codeblocksdark") .Site.Params.codeBlocksDark }}
@import "syntax/highlight-dark.scss"
{{ else }}
@import "syntax/highlight-light.scss"
{{ end }}

View file

@ -1,6 +1,6 @@
$ht-code-bgcolor: #282a36;
@import "syntax/syntax-dark.scss";
@import "syntax-dark.scss";
.highlight {
&::-webkit-scrollbar {

View file

@ -1,6 +1,6 @@
$ht-code-bgcolor: #dde2ff;
@import "syntax/syntax-light.scss";
@import "syntax-light.scss";
.highlight {
&::-webkit-scrollbar {