fix title
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user