feat: some shit

This commit is contained in:
2024-04-03 14:27:48 +02:00
parent d4128840b9
commit 93baa3b6b0
67 changed files with 2513 additions and 703 deletions

View File

@@ -29,5 +29,7 @@ export function filterCollection<T extends { id: string }>(collection: T[], loca
return collection.filter(post => {
const [_, lang] = parseSlug(post?.id);
return lang === locale;
}).sort((a, b) => {
return a.data.date > b.data.date ? -1 : 1;
});
}