mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-06-13 03:38:11 -05:00
fix blog order on homepage too
This commit is contained in:
@@ -21,8 +21,8 @@ const posts = await Astro.glob<Frontmatter>("../../pages/posts/*.md");
|
||||
posts
|
||||
.slice(0, 3)
|
||||
.sort(
|
||||
(a, b) =>
|
||||
Date.parse(a.frontmatter.date) - Date.parse(b.frontmatter.date)
|
||||
(a, b) => /* This is reversed because we want the latest post on top */
|
||||
Date.parse(b.frontmatter.date) - Date.parse(a.frontmatter.date)
|
||||
)
|
||||
.map((post) => (
|
||||
<BlogListingCard
|
||||
|
||||
Reference in New Issue
Block a user