Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yokomac committed Mar 18, 2024
1 parent 94dc336 commit ba8953f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/component/navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import Image from 'next/image'
import styles from "../styles/Home.module.css";
import { basePath } from "../../next.config" // 追加
import Link from 'next/link';

const BASE_PATH = basePath ? basePath : "" // 追加

const Navigation = () => (
<div className={styles.navi}>
<div className={styles.naviContent}>
<Link href="https://yokomac.github.io/blog/"> {/* リンク追加 */}
<a href="https://yokomac.github.io/blog/"> {/* リンク追加 */}
<a>
<Image
src={`${BASE_PATH}/next.svg`} // 修正
Expand All @@ -18,7 +17,7 @@ const Navigation = () => (
className={styles.logo}
/>
</a>
</Link>
</a>
<h4 className={styles.name}>TAKUTO YOKOMAKU</h4>
<p className={styles.description}>
I am a web developer focusing on front-end development.
Expand Down
5 changes: 2 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styles from "../styles/Home.module.css";
import { getAllPosts } from "../lib/api";
// import Navigation from '../component/navigation';
import Image from 'next/image'
import Link from 'next/link';

type Props = InferGetStaticPropsType<typeof getStaticProps>;

Expand All @@ -29,7 +28,7 @@ const Home: NextPage<Props> = ({ allPosts }) => {
<div className={styles.wrapper}>
<div className={styles.navi}>
<div className={styles.naviContent}>
<Link href="https://yokomac.github.io/blog/"> {/* リンク追加 */}
<a href="https://yokomac.github.io/blog/"> {/* リンク追加 */}
<a>
<Image
src={`${BASE_PATH}/next.svg`} // 修正
Expand All @@ -39,7 +38,7 @@ const Home: NextPage<Props> = ({ allPosts }) => {
className={styles.logo}
/>
</a>
</Link>
</a>
<h4 className={styles.name}>TAKUTO YOKOMAKU</h4>
<p className={styles.description}>
I am a web developer focusing on front-end development.
Expand Down

0 comments on commit ba8953f

Please sign in to comment.