diff --git a/src/_data/books.js b/src/_data/books.js index 747b2246..29f9e5e8 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -9,7 +9,10 @@ module.exports = async function () { const res = await extract(url, { getExtraEntryFields: (feedEntry) => { return { - image: feedEntry['oku:cover'] || 'https://cdn.coryd.dev/books/missing-book.jpg', + image: + feedEntry['oku:cover'] || + `https://cdn.coryd.dev/books/${feedEntry.title.replace(/\s+/g, '-').toLowerCase()}.jpg` || + 'https://cdn.coryd.dev/books/missing-book.jpg', } }, })