authorclover caruso <git@paperclover.net> 2026-10-10 19:05:27-07:00
committerclover caruso <git@paperclover.net> 2026-10-10 22:56:05-07:00
log31898dacc5172993dd2a35c7c5df1b5de1ba6cbb
tree126dd7a3a8bff61897fbce5e8ae7b64feff3da0e
parenta65bf3965c80663ed40344d8b337c0a5bdc17ca0
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover)

fix: serve the browser favicon

Fixes #100 Assisted-by: gpt-6

3 files changed, 4 insertions(+), 0 deletions(-)

crates/relay/src/site.rs+1
...@@ -283,6 +283,7 @@ fn landing(shown: &str, site: &Site) -> String {...@@ -283,6 +283,7 @@ fn landing(shown: &str, site: &Site) -> String {
283<meta charset="utf-8">283<meta charset="utf-8">
284<meta name="viewport" content="width=device-width, initial-scale=1">284<meta name="viewport" content="width=device-width, initial-scale=1">
285<title>Shared notebook {shown} · Snowbound</title>285<title>Shared notebook {shown} · Snowbound</title>
286<link rel="icon" type="image/svg+xml" href="/favicon.svg">
286<style>287<style>
287 :root {{ color-scheme: light dark; font-family: system-ui, sans-serif; }}288 :root {{ color-scheme: light dark; font-family: system-ui, sans-serif; }}
288 body {{ margin: 0; min-height: 100vh; display: grid; place-items: center; background: Canvas; color: CanvasText; }}289 body {{ margin: 0; min-height: 100vh; display: grid; place-items: center; background: Canvas; color: CanvasText; }}
crates/snowbound/web/index.html+1
...@@ -4,6 +4,7 @@...@@ -4,6 +4,7 @@
4<meta charset="utf-8">4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">5<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
6<title>Snowbound</title>6<title>Snowbound</title>
7<link rel="icon" type="image/svg+xml" href="/favicon.svg">
7<script>8<script>
8 // The open section's hue and the page's colour as the app last showed them (`keepLook`).9 // The open section's hue and the page's colour as the app last showed them (`keepLook`).
9 try {10 try {
tools/release_web.py+2
...@@ -152,6 +152,8 @@ def page(out, code):...@@ -152,6 +152,8 @@ def page(out, code):
152 sys.exit(f'index.html lacks `{marker}`')152 sys.exit(f'index.html lacks `{marker}`')
153 html = html.replace(marker, written)153 html = html.replace(marker, written)
154 (out / 'index.html').write_text(html)154 (out / 'index.html').write_text(html)
155 shutil.copyfile(ROOT / 'crates/snowbound/assets/icon/sources/Snowbound-Tahoe.icon/Assets/Snowflake.svg',
156 out / 'favicon.svg')
155157
156158
157def dictionaries(folder):159def dictionaries(folder):