From e442ccc926c331dbef62b5230ef4ea4880ed4cb5 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 18 Jan 2026 20:02:19 +0900 Subject: [PATCH] fix title --- index.html | 2 +- public/config.json | 2 +- src/web/main.ts | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f4f46e1..140ef9a 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - syui.github.io + ailog diff --git a/public/config.json b/public/config.json index 44668c7..0566604 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,5 @@ { - "title": "syui.github.io", + "title": "ailog", "handle": "syui.ai", "collection": "ai.syui.log.post", "network": "bsky.social", diff --git a/src/web/main.ts b/src/web/main.ts index 127268d..20bcc12 100644 --- a/src/web/main.ts +++ b/src/web/main.ts @@ -62,6 +62,11 @@ async function render(route: Route): Promise { document.documentElement.style.setProperty('--btn-color', config.color) } + // Set page title from config + if (config.title) { + document.title = config.title + } + // Handle OAuth callback if present (check both ? and #) const searchParams = new URLSearchParams(window.location.search) const hashParams = window.location.hash ? new URLSearchParams(window.location.hash.slice(1)) : null