feat: refactor image loading

This commit is contained in:
Cory Dransfeldt 2024-05-01 17:46:07 -07:00
parent 22fd3850ef
commit 93fb7eafeb
No known key found for this signature in database
30 changed files with 3408 additions and 4023 deletions

View file

@ -12,7 +12,7 @@ export default async function () {
title: book['title'],
authors,
description: book['description'],
image: `https://coryd.dev/.netlify/images/?url=${encodeURIComponent(book['thumbnail'].replace('&edge=curl', ''))}&fit=cover&w=200&h=307`,
image: encodeURIComponent(book['thumbnail'].replace('&edge=curl', '')),
url: `https://openlibrary.org/isbn/${book['isbn']}`,
dateAdded: book?.['dateStarted'] || book?.['dateFinished'],
status: book['status'],