File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const MarkdownViewer = () => {
59
59
return (
60
60
< div className = 'min-h-[100vh]' >
61
61
< SEO
62
- title = { `${ capitalizeWords ( topic ) } | Gopher Notes` }
62
+ title = { `${ capitalizeWords ( topic ! ) } | Gopher Notes` }
63
63
description = { `${ topic } | Dive deep to ${ topic } in go.` }
64
64
name = 'Amanuel Chaka'
65
65
type = 'article'
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const TopicList = () => {
22
22
return (
23
23
< div className = 'container mx-auto py-1 leading-relaxed pb-12 dark:text-neutral-300 max-w-3xl mt-12 w-11/12' >
24
24
< SEO
25
- title = { `${ capitalizeWords ( category ) } | Gopher notes` }
25
+ title = { `${ capitalizeWords ( category ! ) } | Gopher notes` }
26
26
description = { descSEO }
27
27
name = 'Amanuel Chaka'
28
28
type = 'article'
@@ -34,16 +34,15 @@ const TopicList = () => {
34
34
</ div >
35
35
36
36
< 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' >
38
38
{ topicList . map ( ( topic ) => (
39
- < li
39
+ < Link
40
40
className = 'card'
41
+ to = { `/${ category } /${ topic } ` }
41
42
key = { topic }
42
43
>
43
- < Link to = { `/${ category } /${ topic } ` } >
44
- { topic . split ( '-' ) . join ( ' ' ) }
45
- </ Link >
46
- </ li >
44
+ { topic . split ( '-' ) . join ( ' ' ) }
45
+ </ Link >
47
46
) ) }
48
47
</ ul >
49
48
</ div >
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ export const categories = [
37
37
} ,
38
38
{
39
39
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' ,
41
42
link : '/loops' ,
42
43
} ,
43
44
{
@@ -67,7 +68,8 @@ export const categories = [
67
68
} ,
68
69
{
69
70
title : 'Go Facts' ,
70
- description : 'Additional concepts and Go proverbs' ,
71
+ description :
72
+ 'Go proverbs from creators of Go language and additional concepts' ,
71
73
link : '/go-facts' ,
72
74
} ,
73
75
] ;
You can’t perform that action at this time.
0 commit comments