Skip to content

Commit 8fefeaa

Browse files
committed
use useBaseUrl()
1 parent 19c4dd0 commit 8fefeaa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/homepage/contributors/Contributors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styles from './index.module.css';
2+
import useBaseUrl from '@docusaurus/useBaseUrl';
23

34
const contributors = [
45
{
@@ -34,7 +35,7 @@ export default function Contributors() {
3435
function Contributor({ name, icon, title }) {
3536
return (
3637
<div className={ styles.contributor }>
37-
<img src={`/img/contributors/${icon}`} />
38+
<img src={useBaseUrl(`/img/contributors/${icon}`)} />
3839
<p className={styles.name}>{ name }</p>
3940
<p className={styles.title}>{ title }</p>
4041
</div>

src/components/homepage/hero/Hero.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import useBaseUrl from '@docusaurus/useBaseUrl';
12
import styles from './index.module.css';
23

34
export default function Hero() {
45
return (
56
<section className={styles.fullscreensection}>
67
<div className={styles.center}>
78
<img className={styles.icon}
8-
src='/img/bbp.png'
9+
src={useBaseUrl('/img/bbp.png')}
910
width={72 * 4}
1011
height={72 * 4}
1112
/>

0 commit comments

Comments
 (0)