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": {