optimize posts images and other improvements

This commit is contained in:
Juan Carlos Manzanero Domínguez
2024-06-25 17:13:28 -06:00
parent 9c3e631c78
commit ec3bccb0de
13 changed files with 80 additions and 100 deletions

View File

@ -12,7 +12,6 @@ export const navItems: TNavItem[] = [
label: "Portfolio",
to: "/portfolio",
},
{
label: "Microblog",
to: "/microblog",

6
src/utils/sorts.ts Normal file
View 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()),
);
}