docs(plan): on-demand site detail page parsing (HHClub details.php)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
rootandClaude Fable 5.1 committed 2026-09-29 15:13:35 +08:00
1 parent 94fd48bff2
commit ac478673bc
39 files changed
+2446 -339

No files matched your search

+5 -1
View File
@@ -166,5 +166,9 @@ export function findNavItem(pathname: string): NavItem | undefined {
/** 顶栏标题:导航项名,或不在侧栏的页面名 */
export function pageTitle(pathname: string): string | undefined {
const path = pathname.replace(/\/+$/, "");
return findNavItem(pathname)?.label ?? EXTRA_TITLES[path];
return (
findNavItem(pathname)?.label ??
EXTRA_TITLES[path] ??
(path.startsWith("/console/media/tmdb/") ? "作品详情" : undefined)
);
}