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>
<meta charset="UTF-8">
<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">
</head>
<body>

View File

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

View File

@@ -62,6 +62,11 @@ async function render(route: Route): Promise<void> {
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