feat: some shit
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user