Skip to content

Commit

Permalink
fix blog build
Browse files Browse the repository at this point in the history
  • Loading branch information
solygambas committed Mar 6, 2023
1 parent d50b662 commit fee493d
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 1,942 deletions.
24 changes: 10 additions & 14 deletions blog/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ export default function Layout({ children, home }) {
) : (
<>
<Link href="/">
<a>
<Image
src="/images/profile.jpg"
className={`${styles.headerImage} ${utilStyles.borderCircle}`}
width={96}
height={96}
alt={name}
/>
</a>
<Image
src="/images/profile.jpg"
className={`${styles.headerImage} ${utilStyles.borderCircle}`}
width={96}
height={96}
alt={name}
/>
</Link>
<h2 className={utilStyles.headingLg}>
<Link href="/">
<a className={utilStyles.colorInherit}>{name}</a>
<Link href="/" className={utilStyles.colorInherit}>
{name}
</Link>
</h2>
</>
Expand All @@ -61,9 +59,7 @@ export default function Layout({ children, home }) {
<main>{children}</main>
{!home && (
<div className={styles.backToHome}>
<Link href="/">
<a>← Back to home</a>
</Link>
<Link href="/">← Back to home</Link>
</div>
)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"dependencies": {
"date-fns": "^2.16.1",
"gray-matter": "^4.0.2",
"next": "^11.1.3",
"react": "17.0.1",
"react-dom": "17.0.1",
"next": "^13.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark": "^13.0.0",
"remark-html": "^13.0.2"
}
Expand Down
4 changes: 1 addition & 3 deletions blog/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export default function Home({ allPostsData }) {
<ul className={utilStyles.list}>
{allPostsData.map(({ id, date, title }) => (
<li className={utilStyles.listItem} key={id}>
<Link href={`/posts/${id}`}>
<a>{title}</a>
</Link>
<Link href={`/posts/${id}`}>{title}</Link>
<br />
<small className={utilStyles.lightText}>
<Date dateString={date} />
Expand Down
Loading

0 comments on commit fee493d

Please sign in to comment.