Skip to content

Commit fee493d

Browse files
committed
fix blog build
1 parent d50b662 commit fee493d

File tree

4 files changed

+175
-1942
lines changed

4 files changed

+175
-1942
lines changed

blog/components/layout.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,17 @@ export default function Layout({ children, home }) {
4040
) : (
4141
<>
4242
<Link href="/">
43-
<a>
44-
<Image
45-
src="/images/profile.jpg"
46-
className={`${styles.headerImage} ${utilStyles.borderCircle}`}
47-
width={96}
48-
height={96}
49-
alt={name}
50-
/>
51-
</a>
43+
<Image
44+
src="/images/profile.jpg"
45+
className={`${styles.headerImage} ${utilStyles.borderCircle}`}
46+
width={96}
47+
height={96}
48+
alt={name}
49+
/>
5250
</Link>
5351
<h2 className={utilStyles.headingLg}>
54-
<Link href="/">
55-
<a className={utilStyles.colorInherit}>{name}</a>
52+
<Link href="/" className={utilStyles.colorInherit}>
53+
{name}
5654
</Link>
5755
</h2>
5856
</>
@@ -61,9 +59,7 @@ export default function Layout({ children, home }) {
6159
<main>{children}</main>
6260
{!home && (
6361
<div className={styles.backToHome}>
64-
<Link href="/">
65-
<a>← Back to home</a>
66-
</Link>
62+
<Link href="/">← Back to home</Link>
6763
</div>
6864
)}
6965
</div>

blog/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"dependencies": {
2020
"date-fns": "^2.16.1",
2121
"gray-matter": "^4.0.2",
22-
"next": "^11.1.3",
23-
"react": "17.0.1",
24-
"react-dom": "17.0.1",
22+
"next": "^13.2.3",
23+
"react": "^18.2.0",
24+
"react-dom": "^18.2.0",
2525
"remark": "^13.0.0",
2626
"remark-html": "^13.0.2"
2727
}

blog/pages/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ export default function Home({ allPostsData }) {
3535
<ul className={utilStyles.list}>
3636
{allPostsData.map(({ id, date, title }) => (
3737
<li className={utilStyles.listItem} key={id}>
38-
<Link href={`/posts/${id}`}>
39-
<a>{title}</a>
40-
</Link>
38+
<Link href={`/posts/${id}`}>{title}</Link>
4139
<br />
4240
<small className={utilStyles.lightText}>
4341
<Date dateString={date} />

0 commit comments

Comments
 (0)