chore: update remix to v2

This commit is contained in:
Andrea
2023-10-21 19:30:32 +02:00
parent 8222a4dfb2
commit 8a9fd697b5
15 changed files with 2367 additions and 5821 deletions

View File

@@ -33,7 +33,7 @@ export const getMdxFile = async (file: string) => {
};
export const findPosts = async () => {
const files = await readdir("posts");
const files = await readdir("./posts");
const posts: (FrontMatter & {
filename: string;
})[] = [];
@@ -66,6 +66,6 @@ export const findPosts = async () => {
}
return posts.sort((a, b) =>
new Date(a.published) > new Date(b.published) ? -1 : 1
new Date(a.published) > new Date(b.published) ? -1 : 1,
);
};