From 6509a0607ee510cbe84ba81fbafb7c33bda92fb9 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 15 Jun 2024 09:02:19 -0700 Subject: [PATCH] fix: books feed --- config/filters/index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/filters/index.js b/config/filters/index.js index b1f022ca..5fb285cf 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -171,7 +171,7 @@ export default { return `${allButLast} and ${last}` }, bookStatus: (books, status) => books.filter(book => book.status === status), - bookSortDescending: (books) => books.sort((a, b) => { + bookSortDescending: (books) => books.filter(book => !isNaN(DateTime.fromISO(book.date).toMillis())).sort((a, b) => { const dateA = DateTime.fromISO(a.date) const dateB = DateTime.fromISO(b.date) return dateB - dateA diff --git a/package-lock.json b/package-lock.json index 6f084d81..edb45782 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "19.3.19", + "version": "19.3.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "19.3.19", + "version": "19.3.20", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 69d39cf7..b5150113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.3.19", + "version": "19.3.20", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": {