We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc91d8 commit 5dc4331Copy full SHA for 5dc4331
website/src/components/ui/common/SearchWindow.tsx
@@ -1,11 +1,12 @@
1
import type { FC } from "hono/jsx";
2
import { CloseIcon } from "../../icons";
3
+import { basePath } from "../../../metadata";
4
5
export const SearchWindow: FC = () => {
6
return (
7
<div class="flex flex-col max-h-[80vh]">
- <link href="/pagefind/pagefind-ui.css" rel="stylesheet" />
8
- <script src="/pagefind/pagefind-ui.js" />
+ <link href={`${basePath.replace(/\/$/, "")}/pagefind/pagefind-ui.css`} rel="stylesheet" />
9
+ <script src={`${basePath.replace(/\/$/, "")}/pagefind/pagefind-ui.js`} />
10
<div class="flex justify-between items-center p-4 border-b border-gray-200 flex-shrink-0">
11
<h2 class="text-lg font-semibold">検索</h2>
12
<button
0 commit comments