Add error check for color scheme

master
Will Faught 2 years ago
parent b480012113
commit 4350c46e68

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

Loading…
Cancel
Save