Add error check for color scheme
This commit is contained in:
@@ -86,6 +86,8 @@ section.paige-content > blockquote p:last-of-type {
|
||||
{{ partial "paige/dark.css" . | safeCSS }}
|
||||
{{ else if eq . "light" }}
|
||||
{{ partial "paige/light.css" . | safeCSS }}
|
||||
{{ else }}
|
||||
{{ errorf "invalid color scheme: %q" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
Reference in New Issue
Block a user