mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
variant: avoid style leak for auto style #473
This commit is contained in:
parent
23b285e5df
commit
563606425b
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@
|
|||
{{- $themevariantsauto = ($themevariantsauto | first 2) -}}
|
||||
{{- with index $themevariantsauto 0 -}}
|
||||
{{- if site.IsServer -}}
|
||||
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen;
|
||||
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen and (prefers-color-scheme: light);
|
||||
{{- else -}}
|
||||
@import "{{(printf "theme-%s.css" .)}}" screen;
|
||||
@import "{{(printf "theme-%s.css" .)}}" screen and (prefers-color-scheme: light);
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with index $themevariantsauto 1 -}}
|
||||
|
|
Loading…
Reference in a new issue