mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
refactor: consistency
This commit is contained in:
1 parent
9868b04fae
commit
3e7984306c
1 file changed
+2
-2
@@ -155,8 +155,8 @@
|
||||
{{ else if isset site.Params.features.syntax_highlighter "enable" }}
|
||||
{{ $scr.Set "highlight_enabled" site.Params.features.syntax_highlighter.enable }}
|
||||
{{ end }}
|
||||
{{ $hl_theme_light := site.Params.features.syntax_highlighter.light_theme | default "github-light" }}
|
||||
{{ $hl_theme_dark := site.Params.features.syntax_highlighter.dark_theme | default "dracula" }}
|
||||
{{ $hl_theme_light := site.Params.features.syntax_highlighter.theme_day | default "github-light" }}
|
||||
{{ $hl_theme_dark := site.Params.features.syntax_highlighter.theme_night | default "dracula" }}
|
||||
{{ $hl_theme_light_css := resources.Get (printf "css/libs/chroma/%s.css" $hl_theme_light) | minify }}
|
||||
{{ $hl_theme_dark_css := resources.Get (printf "css/libs/chroma/%s.css" $hl_theme_dark) | minify }}
|
||||
<link rel="stylesheet" href="{{ $hl_theme_light_css.RelPermalink }}" title="hl-light" media="print" onload="this.media='all'" {{ if ne ($scr.Get "light") true }}disabled{{end}}>
|
||||
|
||||
Reference in new issue
Block a user