chore: don't generate unwatched/unread pages

This commit is contained in:
Cory Dransfeldt 2024-08-25 12:12:55 -07:00
parent 98b6399c89
commit 5376095860
No known key found for this signature in database
8 changed files with 13 additions and 11 deletions

View file

@ -115,6 +115,6 @@ const sortBooksByYear = (books) => {
export default async function () {
const books = await fetchAllBooks()
const processedBooks = processBooks(books)
const processedBooks = processBooks(books).filter(book => book['status'] !== 'want to read')
return { all: processedBooks, years: sortBooksByYear(processedBooks) }
}