Skip to content

Commit 302175e

Browse files
committed
fix: layout issue
1 parent ee36130 commit 302175e

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/components/MarkdownViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const MarkdownViewer = () => {
5959
return (
6060
<div className='min-h-[100vh]'>
6161
<SEO
62-
title={`${capitalizeWords(topic)} | Gopher Notes`}
62+
title={`${capitalizeWords(topic!)} | Gopher Notes`}
6363
description={`${topic} | Dive deep to ${topic} in go.`}
6464
name='Amanuel Chaka'
6565
type='article'

src/components/TopicList.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const TopicList = () => {
2222
return (
2323
<div className='container mx-auto py-1 leading-relaxed pb-12 dark:text-neutral-300 max-w-3xl mt-12 w-11/12'>
2424
<SEO
25-
title={`${capitalizeWords(category)} | Gopher notes`}
25+
title={`${capitalizeWords(category!)} | Gopher notes`}
2626
description={descSEO}
2727
name='Amanuel Chaka'
2828
type='article'
@@ -34,16 +34,15 @@ const TopicList = () => {
3434
</div>
3535

3636
<h1 className='my-10 z-50'>{category?.replaceAll('-', ' ')}</h1>
37-
<ul className='grid md:grid-cols-3 gap-6 list-none'>
37+
<ul className='grid md:grid-cols-2 gap-6 list-none'>
3838
{topicList.map((topic) => (
39-
<li
39+
<Link
4040
className='card'
41+
to={`/${category}/${topic}`}
4142
key={topic}
4243
>
43-
<Link to={`/${category}/${topic}`}>
44-
{topic.split('-').join(' ')}
45-
</Link>
46-
</li>
44+
{topic.split('-').join(' ')}
45+
</Link>
4746
))}
4847
</ul>
4948
</div>

src/utils/lists.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export const categories = [
3737
},
3838
{
3939
title: 'Loops',
40-
description: 'Iterate over sequences of data in Go.',
40+
description:
41+
'Iterate over sequences of data in Go which is essential for repeating actions',
4142
link: '/loops',
4243
},
4344
{
@@ -67,7 +68,8 @@ export const categories = [
6768
},
6869
{
6970
title: 'Go Facts',
70-
description: 'Additional concepts and Go proverbs',
71+
description:
72+
'Go proverbs from creators of Go language and additional concepts',
7173
link: '/go-facts',
7274
},
7375
];

0 commit comments

Comments
 (0)