Skip to content

Commit

Permalink
changelog direction
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgill committed Apr 1, 2024
1 parent c8a0de6 commit 742347f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.51.0",
"remeda": "^1.57.0",
"sharp": "^0.33.2",
"simple-stack-form": "^0.1.12",
"sonner": "^1.4.3",
Expand Down
10 changes: 8 additions & 2 deletions apps/www/src/pages/changelog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ import { Badge } from "@/components/ui/Badge";
import MainLayout from "@/layouts/MainLayout.astro";
import { formatDate } from "@/lib/utils";
import { getCollection } from "astro:content";
import * as R from "remeda";
const posts = await getCollection("changelog");
posts.sort((a, b) => +b.data.date - +a.data.date);
const posts = R.pipe(
await getCollection("changelog"),
R.sortBy((post) => post.data.date),
R.reverse(),
);
console.log(posts);
---

<MainLayout title="Changelog">
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 742347f

Please sign in to comment.