feat: self-hosted book feeds

This commit is contained in:
Cory Dransfeldt 2024-05-21 12:07:01 -07:00
parent bada16aa3a
commit 3ccc07ee63
No known key found for this signature in database
7 changed files with 155 additions and 86 deletions

View file

@ -17,12 +17,13 @@ export default async function () {
authors,
description: book['description'],
image: book['thumbnail'],
url: `https://openlibrary.org/isbn/${book['isbn']}`,
url: `https://coryd.dev/books/${book['isbn']}`,
date,
status: book['status'],
tags: book['tags'],
categories: book['categories']?.length > 1 ? book['categories'].join(', ') : book['categories']?.[0],
rating: book['rating'] !== 'unrated' ? book['rating'] : '',
isbn: book['isbn'],
type: 'book',
}
})