mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
refactor: consistency
This commit is contained in:
parent
9868b04fae
commit
3e7984306c
1 changed files with 2 additions and 2 deletions
|
@ -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}}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue