Make theme key accessible via CSS

This commit is contained in:
Svilen Markov
2025-05-19 21:25:33 +01:00
parent a6382b2e1d
commit b294839b79
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" id="top" data-scheme="{{ if .Request.Theme.Light }}light{{ else }}dark{{ end }}">
<html lang="en" id="top" data-theme="{{ .Request.Theme.Key }}" data-scheme="{{ if .Request.Theme.Light }}light{{ else }}dark{{ end }}">
<head>
{{ block "document-head-before" . }}{{ end }}
<script>