File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
website/src/components/templates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { html } from "hono/html" ;
22import type { FC , PropsWithChildren } from "hono/jsx" ;
3- import { basePath , originUrl , typstOfficialUrl } from "../../metadata" ;
3+ import { basePath , originUrl , typstOfficialDocsUrl } from "../../metadata" ;
44import type { Page } from "../../types/model" ;
55import { joinPath } from "../../utils/path" ;
66import { getTranslationStatus } from "../../utils/translationStatus" ;
@@ -46,7 +46,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
4646 const translationStatus = getTranslationStatus ( route ) ;
4747 const absoluteRouteUrl = new URL ( route , originUrl ) . toString ( ) ;
4848 const faviconUrl = new URL ( `${ basePath } /favicon.png` , originUrl ) . toString ( ) ;
49- const typstOfficialRouteUrl = new URL ( route , typstOfficialUrl ) . toString ( ) ;
49+ const typstOfficialRouteUrl = joinPath ( typstOfficialDocsUrl , route . slice ( basePath . length - ( basePath . endsWith ( "/" ) ? 1 : 0 ) ) ) ;
5050 return (
5151 < html lang = "ja" class = "scroll-pt-24" >
5252 < head >
You can’t perform that action at this time.
0 commit comments