Page titles lead with the page: "Titles · bggpipe"

Cramped contexts (home-screen labels, narrow tab strips) truncate the
tail of a title; "bggpipe — pipeline" lost the only distinctive word.
The separator becomes a middle dot, which wraps cleanly where the
em dash read as one glued token.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016jXZFSTZQKzAC8fqpWSz9g
This commit is contained in:
Eric Wagoner
2026-08-03 17:00:28 -04:00
co-authored by Claude Fable 5
parent bd1bc5e020
commit 0401c3351b
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
const NAME = decodeURIComponent(location.pathname.split("/").pop()); const NAME = decodeURIComponent(location.pathname.split("/").pop());
document.getElementById("photoname").textContent = NAME; document.getElementById("photoname").textContent = NAME;
document.getElementById("rawlink").href = `/photos/${encodeURIComponent(NAME)}`; document.getElementById("rawlink").href = `/photos/${encodeURIComponent(NAME)}`;
document.title = `bggpipe — ${NAME}`; document.title = `${NAME} · bggpipe`;
function ticket(s) { function ticket(s) {
return ` return `
+3 -1
View File
@@ -646,7 +646,9 @@ def create_app(
for href, page, label, badge in NAV_PAGES for href, page, label, badge in NAV_PAGES
) )
return ( return (
shell.replace("<!--TITLE-->", f"bggpipe — {name}") # page name first: cramped contexts (home-screen labels, tab
# strips) truncate the tail, which should be the redundant part
shell.replace("<!--TITLE-->", f"{name.capitalize()} · bggpipe")
.replace("<!--NAV-->", nav) .replace("<!--NAV-->", nav)
.replace("<!--PAGE-->", fragment) .replace("<!--PAGE-->", fragment)
) )