Add error check for color scheme

This commit is contained in:
Will Faught
2023-02-22 18:53:54 -08:00
parent b480012113
commit 4350c46e68

View File

@@ -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) {