[object Object]

← back to build-pages

seo: theme-color meta (light + dark variants matching CSS palette) + 1 smoke

d4bc9ad3ac24919fca40393cfca7eb26f03ea166 · 2026-05-13 15:04:37 -0700 · SteveStudio2

Files touched

Diff

commit d4bc9ad3ac24919fca40393cfca7eb26f03ea166
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 15:04:37 2026 -0700

    seo: theme-color meta (light + dark variants matching CSS palette) + 1 smoke
---
 server.js     | 2 ++
 test/smoke.js | 1 +
 2 files changed, 3 insertions(+)

diff --git a/server.js b/server.js
index 0fcd2cb..16b1596 100644
--- a/server.js
+++ b/server.js
@@ -186,6 +186,8 @@ function shell(title, body, headExtra = '', meta = {}) {
   <title>${esc(title)}</title>
   <meta name="description" content="${esc(desc)}">
   <meta name="color-scheme" content="light dark">
+  <meta name="theme-color" content="#faf9f6" media="(prefers-color-scheme: light)">
+  <meta name="theme-color" content="#0d0c0a" media="(prefers-color-scheme: dark)">
   <link rel="canonical" href="${esc(canonical)}">
   <meta property="og:title" content="${esc(title)}">
   <meta property="og:description" content="${esc(desc)}">
diff --git a/test/smoke.js b/test/smoke.js
index fd44450..9ad2f5f 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -91,6 +91,7 @@ function check(name, cond, hint = '') {
   check('home: X-Content-Type-Options', (r.headers['x-content-type-options'] || '') === 'nosniff');
   check('home: fleet totals',      /\d+ projects · \d+ commits · \d+ design-rationale ideas/.test(r.body));
   check('home: recent rail',       /Recent across the fleet/.test(r.body));
+  check('home: theme-color',       /name="theme-color"/.test(r.body));
   check('home: canonical',         /rel="canonical"/.test(r.body));
   check('home: og:title',          /property="og:title"/.test(r.body));
   check('home: WebSite JSON-LD',   /"@type":"WebSite"/.test(r.body));

← c814a15 Makefile: audit target  ·  back to build-pages  ·  security: Permissions-Policy header (geolocation/microphone/ 98d376b →