From a68cf6ccb8e15d47336a44ee2808dc829c2a8da8 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 20 Apr 2024 08:27:15 -0700 Subject: [PATCH] fix: feed date --- src/_data/books.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_data/books.js b/src/_data/books.js index 03770b47..f2bbe441 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -10,7 +10,7 @@ export default async function () { description: book['description'], image: `https://coryd.dev/.netlify/images/?url=${encodeURIComponent(book['thumbnail'].replace('&edge=curl', ''))}&fit=cover&w=200&h=307`, url: `https://openlibrary.org/isbn/${book['isbn']}`, - dateAdded: book['dateStarted'], + dateAdded: book?.['dateStarted'] || book?.['dateFinished'], status: book['status'], type: 'book', }