1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Remove the color-scheme <meta> property

- The default time is browser-default colors, not "light". The only
  "theme" for my site is the dark theme.
- The "color-scheme" doesn't have wide support
- The "color-scheme" property doesn't really do anything much if you use
  browser-defaults or a dark theme with @prefers-color-scheme
This commit is contained in:
Rohan Kumar 2021-01-20 18:32:28 -08:00
parent e713a0e02a
commit 852b3f91a0
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -28,11 +28,6 @@
{{ if not (eq $dark "off") -}} {{ if not (eq $dark "off") -}}
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} {{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
{{ end -}} {{ end -}}
<!-- Tell the browser we support dark mode. If the user doesn't
specify a preference, prefer light mode; users who override
browser default stylesheets will be able to use their preferred
palette that way. -->
<meta name="color-scheme" content="light dark">
{{ $css := $resources | resources.Concat "css/style.css" | minify | resources.Fingerprint "sha384" -}} {{ $css := $resources | resources.Concat "css/style.css" | minify | resources.Fingerprint "sha384" -}}
{{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML -}} {{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML -}}
<!-- only load syntax-highlighting CSS if this page needs it --> <!-- only load syntax-highlighting CSS if this page needs it -->