mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-20 23:22:00 +01:00
Clean up date comparision fix
This commit is contained in:
parent
709251e0a2
commit
248d82e739
@ -47,7 +47,7 @@ async function generateFeed(config: SiteConfig, hostname: string) {
|
|||||||
link: fullUrl,
|
link: fullUrl,
|
||||||
description: frontmatter.description,
|
description: frontmatter.description,
|
||||||
content,
|
content,
|
||||||
date: typeof frontmatter.date == 'string' ? new Date(frontmatter.date) : frontmatter.date,
|
date: frontmatter.date,
|
||||||
} satisfies Item
|
} satisfies Item
|
||||||
|
|
||||||
feed.addItem(post)
|
feed.addItem(post)
|
||||||
|
@ -24,6 +24,6 @@ export default createContentLoader('news/*.md', {
|
|||||||
url,
|
url,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.sort((a, b) => b.date.localeCompare(a.date))
|
.sort((a, b) => b.date.toString().localeCompare(a.date.toString()))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
type: article
|
type: article
|
||||||
title: Updated website
|
title: Updated website
|
||||||
description: We've got a fresh new website we hope will be even easier to use
|
description: We've got a fresh new website we hope will be even easier to use
|
||||||
date: "2023-09-10"
|
date: 2023-09-10
|
||||||
---
|
---
|
||||||
|
|
||||||
# Updated website
|
# Updated website
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
type: article
|
type: article
|
||||||
title: Extensions list removed
|
title: Extensions list removed
|
||||||
description: Due to extenuating circumstances.
|
description: Due to extenuating circumstances.
|
||||||
date: "2024-01-09"
|
date: 2024-01-09
|
||||||
---
|
---
|
||||||
|
|
||||||
# Extensions list removed
|
# Extensions list removed
|
||||||
|
Loading…
Reference in New Issue
Block a user