variant: avoid style leak for auto style #473

This commit is contained in:
Sören Weber 2023-02-10 18:38:27 +01:00
parent 23b285e5df
commit 563606425b
No known key found for this signature in database
GPG Key ID: BEC6D55545451B6D

View File

@ -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 -}}