From 4c8eb3424be4f5c46659208625ec1d0261e409a5 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 26 Jun 2023 20:06:01 -0700 Subject: [PATCH] fix: book url structure --- src/_data/books.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_data/books.js b/src/_data/books.js index 29f9e5e8..86d8f4c1 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -11,7 +11,10 @@ module.exports = async function () { return { image: feedEntry['oku:cover'] || - `https://cdn.coryd.dev/books/${feedEntry.title.replace(/\s+/g, '-').toLowerCase()}.jpg` || + `https://cdn.coryd.dev/books/${feedEntry.title + .replace(/\s+/g, '-') + .replace(':', '') + .toLowerCase()}.jpg` || 'https://cdn.coryd.dev/books/missing-book.jpg', } },