optimize posts images and other improvements
This commit is contained in:
@ -12,7 +12,6 @@ export const navItems: TNavItem[] = [
|
||||
label: "Portfolio",
|
||||
to: "/portfolio",
|
||||
},
|
||||
|
||||
{
|
||||
label: "Microblog",
|
||||
to: "/microblog",
|
6
src/utils/sorts.ts
Normal file
6
src/utils/sorts.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export function sortContentByDate(array: any[]) {
|
||||
array.sort(
|
||||
(a: any, b: any) =>
|
||||
Date.parse(b.data.date.toString()) - Date.parse(a.data.date.toString()),
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user