diff --git a/content/releases/Release Notes 03.14.24.md b/content/releases/Release Notes 03.14.24.md index c45035c1e9dbe..48761a9e3f826 100644 --- a/content/releases/Release Notes 03.14.24.md +++ b/content/releases/Release Notes 03.14.24.md @@ -1,6 +1,6 @@ --- title: Release Notes 03.14.24 -date: 03.14.23 +date: 03.14.24 tags: - releases - demos @@ -47,4 +47,4 @@ CHANGED - API Server now uses async methods to make use of benefits of FastAPI FIXED -- URL encoding all GET requests in honcho client \ No newline at end of file +- URL encoding all GET requests in honcho client diff --git a/content/releases/Release Notes 03.21.24.md b/content/releases/Release Notes 03.21.24.md index d14fda4bcee6a..756ea45e14b78 100644 --- a/content/releases/Release Notes 03.21.24.md +++ b/content/releases/Release Notes 03.21.24.md @@ -1,6 +1,6 @@ --- title: Release Notes 03.21.24 -date: 03.14.23 +date: 03.21.24 tags: - releases - announcements @@ -39,4 +39,4 @@ CHANGED FIXED - API Response schema removed unnecessary fields - OTEL logging to properly work with async database engine -- `fly.toml` default settings \ No newline at end of file +- `fly.toml` default settings diff --git a/quartz.layout.ts b/quartz.layout.ts index b753c2a1938da..d8e4958319f63 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -28,7 +28,39 @@ export const defaultContentPageLayout: PageLayout = { Component.MobileOnly(Component.Spacer()), Component.Search(), Component.Darkmode(), - Component.DesktopOnly(Component.Explorer()), + Component.DesktopOnly(Component.Explorer({ + sortFn: (a, b) => { + if (a.file && b.file) { + const aDate = new Date(a.file.frontmatter.date) + const bDate = new Date(b.file.frontmatter.date) + // console.log(a.file) + if (a.file.slug.includes("release")) { + console.log(a.file.frontmatter.title, a.file.frontmatter.date, aDate) + console.log(b.file.frontmatter.title, b.file.frontmatter.date, bDate) + console.log(aDate < bDate) + } + // console.log(a.file.frontmatter.title, aDate) + // console.log(b.file.frontmatter.title, bDate) + if (aDate < bDate) { + return 1 + } else { + return -1 + } + } + else if ((!a.file && !b.file)) { + return a.displayName.localeCompare(b.displayName, undefined, { + numeric: true, + sensitivity: "base", + }) + // console.log(a.file) + } + if (a.file && !b.file) { + return 1 + } else { + return -1 + } + } + })), ], right: [ Component.Graph(), @@ -46,7 +78,33 @@ export const defaultListPageLayout: PageLayout = { Component.MobileOnly(Component.Spacer()), Component.Search(), Component.Darkmode(), - Component.DesktopOnly(Component.Explorer()), + Component.DesktopOnly(Component.Explorer({ + sortFn: (a, b) => { + if (a.file && b.file) { + const aDate = new Date(a.file.frontmatter.date) + const bDate = new Date(b.file.frontmatter.date) + // console.log(a.file.frontmatter.title, aDate) + // console.log(b.file.frontmatter.title, bDate) + if (aDate < bDate) { + return 1 + } else { + return -1 + } + } + else if ((!a.file && !b.file)) { + return a.displayName.localeCompare(b.displayName, undefined, { + numeric: true, + sensitivity: "base", + }) + // console.log(a.file) + } + if (a.file && !b.file) { + return 1 + } else { + return -1 + } + } + })), ], right: [], }