Skip to content

Commit bc890c8

Browse files
committed
Add a few more books
1 parent 5a1d73a commit bc890c8

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

cms/content/library.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,24 @@
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
}

cms/models/Book.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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")]),

pages/library.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
};
191 KB
Loading
71.4 KB
Loading

0 commit comments

Comments
 (0)