fix: books feed

This commit is contained in:
Cory Dransfeldt 2024-06-15 09:02:19 -07:00
parent 84d17ce474
commit 6509a0607e
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -171,7 +171,7 @@ export default {
return `${allButLast} and ${last}` return `${allButLast} and ${last}`
}, },
bookStatus: (books, status) => books.filter(book => book.status === status), 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 dateA = DateTime.fromISO(a.date)
const dateB = DateTime.fromISO(b.date) const dateB = DateTime.fromISO(b.date)
return dateB - dateA return dateB - dateA

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.3.19", "version": "19.3.20",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.3.19", "version": "19.3.20",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.4.0", "@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.3.19", "version": "19.3.20",
"description": "The source for my personal site. Built using 11ty.", "description": "The source for my personal site. Built using 11ty.",
"type": "module", "type": "module",
"scripts": { "scripts": {