feat: refactor image loading
This commit is contained in:
parent
22fd3850ef
commit
93fb7eafeb
30 changed files with 3408 additions and 4023 deletions
|
@ -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'],
|
||||
|
|
Reference in a new issue