Skip to content

Commit c72579a

Browse files
committed
Add Design Patterns
1 parent 405e6df commit c72579a

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

cms/content/library.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,15 @@
422422
"image": "/static/library/peopleware.jpg",
423423
"status": "read",
424424
"language": "en"
425+
},
426+
{
427+
"title": "Design Patterns: Elements of Reusable Object-Oriented Software",
428+
"author": "Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides",
429+
"category": "reference",
430+
"readAt": "2016-05-01",
431+
"image": "/static/library/design-patterns.jpg",
432+
"status": "read",
433+
"language": "en"
425434
}
426435
]
427436
}

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("reference"),
1314
z.literal("uncategorized"),
1415
]),
1516
image: z.string(),

pages/library.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ export default function LibraryPage(props: Readonly<LibraryPageProps>) {
7878
<LibrarySectionBooks books={props.library["mental-models"]} />
7979
</LibrarySection>
8080

81+
<LibrarySection>
82+
<LibrarySectionHeading>Reference</LibrarySectionHeading>
83+
84+
<LibrarySectionDescription>
85+
Books I don’t read cover to cover, but return to occasionally as a shared vocabulary or point of reference.
86+
They’re more about clarity and alignment than influence or inspiration.
87+
</LibrarySectionDescription>
88+
89+
<LibrarySectionBooks books={props.library["reference"]} />
90+
</LibrarySection>
91+
8192
<LibrarySection>
8293
<LibrarySectionHeading>Worldview</LibrarySectionHeading>
8394

@@ -135,6 +146,7 @@ export const getStaticProps: GetStaticProps<LibraryPageProps> = async () => {
135146
"mental-models": books.filter((book) => book.category === "mental-models"),
136147
worldview: books.filter((book) => book.category === "worldview"),
137148
exploration: books.filter((book) => book.category === "exploration"),
149+
reference: books.filter((book) => book.category === "reference"),
138150
uncategorized: books.filter((book) => book.category === "uncategorized"),
139151
},
140152
},
150 KB
Loading

0 commit comments

Comments
 (0)