Skip to content

Commit 7e8b729

Browse files
committed
Update home page + code posts page.
1 parent c20be03 commit 7e8b729

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

gatsby-browser.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ import(`@fontsource/source-sans-pro/${theme.fontWeight.black}.css`)
1010
import(`@fontsource/source-code-pro/${theme.fontWeight.regular}.css`)
1111
import(`@fontsource/source-code-pro/${theme.fontWeight.semiBold}.css`)
1212

13-
import 'prismjs'
14-
15-
import 'prismjs/themes/prism.css'
1613
import 'prismjs/themes/prism-okaidia.css'

src/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const IndexPage: React.FC = () => {
1010
<MainLayout>
1111
<SEO title="Home" />
1212
<TextBlock>
13-
<code>
14-
<pre>
13+
<pre className="language-javascript">
14+
<code className="language-javascript">
1515
// TODO: Complete website...
1616
<br />
1717
// I'm currently fighting a cancer again. This is the second time.
1818
<br />
1919
// I created a blog about it, which I'm migrating{' '}
2020
<Link to="/lymphoma">here</Link>.
21-
</pre>
22-
</code>
21+
</code>
22+
</pre>
2323
</TextBlock>
2424
</MainLayout>
2525
)

src/views/CodePostsListView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export const CodePostsListView: React.FC<CodePostsListViewProps> = ({
2121
}) => {
2222
return (
2323
<MainLayout {...more}>
24-
<S.Title>Recent posts about code</S.Title>
24+
<S.Title>
25+
Recent posts about
26+
<br />
27+
code
28+
</S.Title>
2529
<S.PostCardList>
2630
{posts.map((post) => (
2731
<S.PostCardListItem key={post.id}>

0 commit comments

Comments
 (0)