We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ba043 commit 819e79cCopy full SHA for 819e79c
quartz.layout.ts
@@ -3,8 +3,8 @@ import * as Component from "./quartz/components"
3
4
export const sortByRecentDate: Options["sortFn"] = (a, b) => {
5
if (!a.isFolder && !b.isFolder) {
6
- const dateA = a.data.frontmatter?.date ? new Date(a.data.frontmatter.published) : new Date(0);
7
- const dateB = b.data.frontmatter?.date ? new Date(b.data.frontmatter.published) : new Date(0);
+ const dateA = a.data.frontmatter?.date ? new Date(a.data.frontmatter.date) : new Date(0);
+ const dateB = b.data.frontmatter?.date ? new Date(b.data.frontmatter.date) : new Date(0);
8
9
return dateB.getTime() - dateA.getTime();
10
}
0 commit comments