mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 15:29:19 +08:00
variant: avoid style leak for auto style #473
This commit is contained in:
parent
23b285e5df
commit
563606425b
@ -28,9 +28,9 @@
|
|||||||
{{- $themevariantsauto = ($themevariantsauto | first 2) -}}
|
{{- $themevariantsauto = ($themevariantsauto | first 2) -}}
|
||||||
{{- with index $themevariantsauto 0 -}}
|
{{- with index $themevariantsauto 0 -}}
|
||||||
{{- if site.IsServer -}}
|
{{- 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 -}}
|
{{- else -}}
|
||||||
@import "{{(printf "theme-%s.css" .)}}" screen;
|
@import "{{(printf "theme-%s.css" .)}}" screen and (prefers-color-scheme: light);
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with index $themevariantsauto 1 -}}
|
{{- with index $themevariantsauto 1 -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user