File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed
Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 395395 "image" : " /static/library/the-man-from-the-future.jpg" ,
396396 "status" : " read" ,
397397 "language" : " en"
398+ },
399+ {
400+ "title" : " Hackers & Painters: Big Ideas from the Computer Age" ,
401+ "author" : " Paul Graham" ,
402+ "category" : " uncategorized" ,
403+ "readAt" : " 2017-05-01" ,
404+ "image" : " /static/library/hackers-and-painters.jpg" ,
405+ "status" : " read" ,
406+ "language" : " en"
407+ },
408+ {
409+ "title" : " The Pragmatic Programmer: From Journeyman to Master" ,
410+ "author" : " Andrew Hunt, David Thomas" ,
411+ "category" : " uncategorized" ,
412+ "readAt" : " 2015-05-01" ,
413+ "image" : " /static/library/pragmatic-programmer.jpg" ,
414+ "status" : " read" ,
415+ "language" : " en"
398416 }
399417 ]
400418}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const BookSchema = z.object({
1010 z . literal ( "mental-models" ) ,
1111 z . literal ( "worldview" ) ,
1212 z . literal ( "exploration" ) ,
13+ z . literal ( "uncategorized" ) ,
1314 ] ) ,
1415 image : z . string ( ) ,
1516 status : z . union ( [ z . literal ( "read" ) ] ) ,
Original file line number Diff line number Diff line change @@ -100,6 +100,17 @@ export default function LibraryPage(props: Readonly<LibraryPageProps>) {
100100 < LibrarySectionBooks books = { props . library [ "exploration" ] } />
101101 </ LibrarySection >
102102
103+ < LibrarySection >
104+ < LibrarySectionHeading > Uncategorized</ LibrarySectionHeading >
105+
106+ < LibrarySectionDescription >
107+ Books I remember enjoying, but whose influence is now distant or unclear. They’re works I’d need to revisit
108+ to reassess how they resonate with me today.
109+ </ LibrarySectionDescription >
110+
111+ < LibrarySectionBooks books = { props . library [ "uncategorized" ] } />
112+ </ LibrarySection >
113+
103114 < Text className = "Library__Footer" >
104115 I also use Goodreads as a personal reading log. If you’re curious about what I’m reading at the moment, you’ll
105116 find a broader and < em > more eclectic</ em > mix of fiction and non-fiction{ " " }
@@ -124,6 +135,7 @@ export const getStaticProps: GetStaticProps<LibraryPageProps> = async () => {
124135 "mental-models" : books . filter ( ( book ) => book . category === "mental-models" ) ,
125136 worldview : books . filter ( ( book ) => book . category === "worldview" ) ,
126137 exploration : books . filter ( ( book ) => book . category === "exploration" ) ,
138+ uncategorized : books . filter ( ( book ) => book . category === "uncategorized" ) ,
127139 } ,
128140 } ,
129141 } ;
You can’t perform that action at this time.
0 commit comments