fix title

This commit is contained in:
2026-01-18 20:02:19 +09:00
parent 3b2c7435f3
commit e442ccc926
3 changed files with 7 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>syui.github.io</title> <title>ailog</title>
<link rel="stylesheet" href="/src/styles/main.css"> <link rel="stylesheet" href="/src/styles/main.css">
</head> </head>
<body> <body>

View File

@@ -1,5 +1,5 @@
{ {
"title": "syui.github.io", "title": "ailog",
"handle": "syui.ai", "handle": "syui.ai",
"collection": "ai.syui.log.post", "collection": "ai.syui.log.post",
"network": "bsky.social", "network": "bsky.social",

View File

@@ -62,6 +62,11 @@ async function render(route: Route): Promise<void> {
document.documentElement.style.setProperty('--btn-color', config.color) 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 #) // Handle OAuth callback if present (check both ? and #)
const searchParams = new URLSearchParams(window.location.search) const searchParams = new URLSearchParams(window.location.search)
const hashParams = window.location.hash ? new URLSearchParams(window.location.hash.slice(1)) : null const hashParams = window.location.hash ? new URLSearchParams(window.location.hash.slice(1)) : null