Skip to content

Commit d30c1f6

Browse files
committed
Fix baseurl
1 parent 98a2330 commit d30c1f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/ThemeButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
2-
import { Link } from "@docusaurus/router";
3-
import useBaseUrl from "@docusaurus/useBaseUrl";
2+
import Link from "@docusaurus/Link";
43

54
export default function ThemeButton({
65
path,
@@ -12,7 +11,7 @@ export default function ThemeButton({
1211
return (
1312
<Link
1413
className="button button--secondary button--lg"
15-
to={useBaseUrl(path)}
14+
to={path}
1615
style={{ backgroundColor: "#fff" }}
1716
>
1817
{children}

src/pages/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import clsx from "clsx";
32
import Layout from "@theme/Layout";
43
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
54
import HomepageFeatures from "../components/HomepageFeatures";

0 commit comments

Comments
 (0)