diff --git a/src/theme/Footer/Copyright/index.tsx b/src/theme/Footer/Copyright/index.tsx index b647db5..5da3da0 100644 --- a/src/theme/Footer/Copyright/index.tsx +++ b/src/theme/Footer/Copyright/index.tsx @@ -3,7 +3,8 @@ import Copyright from "@theme-original/Footer/Copyright"; import type CopyrightType from "@theme/Footer/Copyright"; import type { WrapperProps } from "@docusaurus/types"; import styles from "./index.module.css"; -import socialLinks from "../../../../config/social-links.json"; +import socialLinks from "@site/config/social-links.json"; +import Logo from "@site/src/theme/logo"; type Props = WrapperProps; @@ -12,7 +13,9 @@ export default function CopyrightWrapper(props: Props): JSX.Element { <>
- +
+ +
diff --git a/src/theme/Footer/Links/MultiColumn/index.tsx b/src/theme/Footer/Links/MultiColumn/index.tsx index d1804f3..5c6cc07 100644 --- a/src/theme/Footer/Links/MultiColumn/index.tsx +++ b/src/theme/Footer/Links/MultiColumn/index.tsx @@ -1,6 +1,7 @@ import React from "react"; import LinkItem from "@theme/Footer/LinkItem"; import type { Props } from "@theme/Footer/Links/MultiColumn"; +import Logo from "@site/src/theme/logo"; type ColumnType = Props["columns"][number]; type ColumnItemType = ColumnType["items"][number]; @@ -39,7 +40,7 @@ export default function FooterLinksMultiColumn({ return (
- +
{columns.map((column, i) => ( diff --git a/src/theme/logo.tsx b/src/theme/logo.tsx new file mode 100644 index 0000000..edb0730 --- /dev/null +++ b/src/theme/logo.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import ThemedImage from "@theme/ThemedImage"; +import useBaseUrl from "@docusaurus/useBaseUrl"; + +/** + * Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images + */ +export default function Logo(): JSX.Element { + return ( + + ); +}