Prepare theming: PageHeader.Theme -> <html data-theme>, explicit dark block

Zero behavior change for every current consumer (Theme defaults to "",
which resolves to the unchanged bare :root block). Adds the seam a
future second theme slots into: its own :root[data-theme="..."] block
in static/style.css, nothing else in this module changes. See
README.md's expanded Theming section for the concrete mechanism.
This commit is contained in:
terminar committed 2026-09-01 22:24:58 +02:00
1 parent adea139888
commit 8875062fc5
5 files changed
+123 -34

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{{define "base"}}<!doctype html>
<html lang="{{if .Lang}}{{.Lang}}{{else}}en{{end}}">
<html lang="{{if .Lang}}{{.Lang}}{{else}}en{{end}}"{{if .Theme}} data-theme="{{.Theme}}"{{end}}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">