From 4350c46e68ef25c4e8bf50981a4a20c10de534ef Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 22 Feb 2023 18:53:54 -0800 Subject: [PATCH] Add error check for color scheme --- layouts/partials/paige/style.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html index bb1453cd..f7c4fed1 100644 --- a/layouts/partials/paige/style.html +++ b/layouts/partials/paige/style.html @@ -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) {