Skip to content

Commit 5dc4331

Browse files
committed
fix: pagefind
1 parent cdc91d8 commit 5dc4331

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/src/components/ui/common/SearchWindow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { FC } from "hono/jsx";
22
import { CloseIcon } from "../../icons";
3+
import { basePath } from "../../../metadata";
34

45
export const SearchWindow: FC = () => {
56
return (
67
<div class="flex flex-col max-h-[80vh]">
7-
<link href="/pagefind/pagefind-ui.css" rel="stylesheet" />
8-
<script src="/pagefind/pagefind-ui.js" />
8+
<link href={`${basePath.replace(/\/$/, "")}/pagefind/pagefind-ui.css`} rel="stylesheet" />
9+
<script src={`${basePath.replace(/\/$/, "")}/pagefind/pagefind-ui.js`} />
910
<div class="flex justify-between items-center p-4 border-b border-gray-200 flex-shrink-0">
1011
<h2 class="text-lg font-semibold">検索</h2>
1112
<button

0 commit comments

Comments
 (0)