Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/data/books.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { classics4 } from './books/classics-4';
import { modern } from './books/modern';
import { contemporary } from './books/contemporary';
import { deepDives } from './deepdives';
import { deepDives2 } from './deepdives-2';

export type { Book, GuideSection, Quote, Highlight } from './types';

Expand All @@ -18,7 +19,10 @@ export const books: Book[] = [
...modern,
...contemporary,
]
.map((b) => (deepDives[b.slug] ? { ...b, deepDive: deepDives[b.slug] } : b))
.map((b) => {
const dd = deepDives[b.slug] ?? deepDives2[b.slug];
return dd ? { ...b, deepDive: dd } : b;
})
.sort((a, b) => a.title.localeCompare(b.title));

export function getBook(slug: string): Book | undefined {
Expand Down
Loading
Loading