fix: books feed
This commit is contained in:
parent
84d17ce474
commit
6509a0607e
3 changed files with 4 additions and 4 deletions
|
@ -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
4
package-lock.json
generated
|
@ -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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Reference in a new issue