fuzzyworld

fuzzyworld-tools / commit

Add coffee favicon to all fuzzyworld sites

2483c47cfc3c1bc87e3b7509957aff2bcb15d2d3 · Pavel Safronov · 2026-10-27 22:32:52 -0700 · parents 780a05831191

Add coffee favicon to all fuzzyworld sites

- Add favicon.ico link to fuzzyworld.net index.html
- Add favicon.ico link to all pages generated by gen.py (code.fuzzyworld.net and apps.fuzzyworld.net)
- Copy favicon.ico to code.fuzzyworld.net and apps.fuzzyworld.net in install.sh

This ensures the coffee favicon appears on all fuzzyworld sites, not just fuzzyworld.net.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
 server/gen.py          | 1 +
 server/install.sh      | 8 ++++----
 server/site/index.html | 1 +
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/server/gen.py b/server/gen.py
index 586c91d..7ff72ed 100755
--- a/server/gen.py
+++ b/server/gen.py
@@ -189,6 +189,7 @@ def page(title, body, crumbs=None, view=None, site="code", refresh=None, section
 <meta name="viewport" content="width=device-width, initial-scale=1">
 {f'<meta http-equiv="refresh" content="{refresh}">' if refresh else ""}
 <title>{esc(title)} · {host}</title>
+<link rel="icon" href="/favicon.ico">
 <link rel="stylesheet" href="/style.css">
 </head>
 <body>
diff --git a/server/install.sh b/server/install.sh
index 8f8fcc4..c31b7a5 100755
--- a/server/install.sh
+++ b/server/install.sh
@@ -25,12 +25,12 @@ chmod +x ~/fw/tools/server/runner-api ~/fw/tools/server/mirror-only
 ln -sfn ~/fw/tools/server/fw ~/bin/fw
 site=~/code.fuzzyworld.net
 cp ~/fw/tools/server/site/htaccess "$site/.htaccess"
-cp ~/fw/tools/server/site/_shared.css ~/fw/tools/server/site/_icons.css ~/fw/tools/server/site/style.css ~/fw/tools/server/site/robots.txt "$site/"
-chmod 644 "$site"/_shared.css "$site"/_icons.css "$site"/style.css "$site"/robots.txt
+cp ~/fw/tools/server/site/_shared.css ~/fw/tools/server/site/_icons.css ~/fw/tools/server/site/style.css ~/fw/tools/server/site/robots.txt ~/fw/tools/server/site/favicon.ico "$site/"
+chmod 644 "$site"/_shared.css "$site"/_icons.css "$site"/style.css "$site"/robots.txt "$site"/favicon.ico
 apps=~/apps.fuzzyworld.net
 cp ~/fw/tools/server/site-apps/htaccess "$apps/.htaccess"
-cp ~/fw/tools/server/site/_shared.css ~/fw/tools/server/site/_icons.css ~/fw/tools/server/site/style.css "$apps/"
-chmod 644 "$apps"/_shared.css "$apps"/_icons.css "$apps"/style.css
+cp ~/fw/tools/server/site/_shared.css ~/fw/tools/server/site/_icons.css ~/fw/tools/server/site/style.css ~/fw/tools/server/site/favicon.ico "$apps/"
+chmod 644 "$apps"/_shared.css "$apps"/_icons.css "$apps"/style.css "$apps"/favicon.ico
 # Main fuzzyworld.net site
 main_site=~/fuzzyworld.net
 cp ~/fw/tools/server/site/index.html ~/fw/tools/server/site/main.css "$main_site/"
diff --git a/server/site/index.html b/server/site/index.html
index 569ff6e..ae677ae 100644
--- a/server/site/index.html
+++ b/server/site/index.html
@@ -4,6 +4,7 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Fuzzy World</title>
+<link rel="icon" href="/favicon.ico">
 <link rel="stylesheet" href="/main.css">
 </head>
 <body>